I am trying to make a truck carrying a group of three soldiers (soldiers G1 to G3, called Group1) to stop when fired upon and the group getting out. However it does not work. What have I missed?
This is what I got in the init in the Ural_1 truck:
this addEventHandler ["Hit",{[G1,G2,G3] orderGetin false; commandstop Ural_1; hint "It works!"}]
This is what I got in the init of G1, leader of Group1:
Group1 = group this; "_x assignAsCargo Ural_1" foreach units Group1; "_x moveInCargo Ural_1" foreach units Group1
I have also tried using a trigger, but it seems like it does not notice that I am shooting at the truck.
Swaty