Hi.
I am trying to create a scenario where a constant stream of enemies comes through a hole in a wall. Then, with the flick of a switch barrels around the hole explode and a boulder appears to block the enemies coming through.
I have managed to create a constant stream of enemies with waypoints. I simply tell the enemy to die after 10 seconds when its hidden behind a wall and then it respawns.
The boulder and explosives are harder though.
I've set the name of the barrels to "bomb" and used this script:
;Artificial Intelligence Script
;Header
desc = Default Entity Behaviour (Nothing)
;Triggers
:activated=1:destroy
:state=0:state=1
;End of Script
I also have an immobile boulder names "bomb" which appears when the switch is hit, blocking the gap. Here is my problem:
The barrels do NOT explode, they just disappear.
The enemies can walk through the boulder. I tried making the physical wieght of a dynamic boulder a very large number but the enemies just pushed it out of the way, there is also the case of the physics. When spawning a boulder it may not cover the entire gap in the wall...
Any help would be really appreciated.
Physics are on both the boulder and characters.
Spartans! Ready your breakfast and eat hearty... For tonight, we dine in Hell!