Defend the Base Suicide Bombers

Kill your comrades. Wholesale
Post Reply
User avatar
Housemaster
Posts: 36
Joined: Fri Aug 06, 2010 3:11 pm

Defend the Base Suicide Bombers

Post by Housemaster »

To prevent the missiles flying from the bodies of the suicide bombers they can be created below ground level - causing them to detonate immediately. To do this we use getPos.

For example, say the suicide bomber is called "bomber1", the trigger that detects when he is killed could have

Code: Select all

damage bomber1 >= 0.9 
in the Condition field, and would have

Code: Select all

bomb="R_PG7V_AT" createVehicle [(getPos bomber1 select 0),(getPos bomber1 select 1),-1]
in the On Act. This creates the bomb - in this case a standard RPG7 round - at the bomber's X and Y position, but puts it 1 meter below him (on the Z axis). A standard RPG round in this example has a very small blast radius, the HE round - "R_OG7_AT" might work better.

I haven't tried it myself, but createVehicleLocal should get around spawning one bomb for every client.

Post Reply