Defend the Base Suicide Bombers
Posted: Sun Mar 06, 2011 10:48 pm
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
in the Condition field, and would have
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.
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
Code: Select all
bomb="R_PG7V_AT" createVehicle [(getPos bomber1 select 0),(getPos bomber1 select 1),-1]
I haven't tried it myself, but createVehicleLocal should get around spawning one bomb for every client.