G'day guys,
I've been trying to make it so when the player enters a vehicle, he cannot exit. How would I do this? I've been trying for a while (using the command reference guide) and I can't seem to figure it out.
Thanks.![]()
G'day guys,
I've been trying to make it so when the player enters a vehicle, he cannot exit. How would I do this? I've been trying for a while (using the command reference guide) and I can't seem to figure it out.
Thanks.![]()
Simply make a trigger with condition:
And then write on the activation field:Code:player in vehicle_name
This will lock the vehicle whenever the player enters it. If you wish to unlock it at some point, write "lock false" instead.Code:vehicle_name lock true
Thanks a lot mate, your help is greatly appreciated.
Another thing, how do you stop AI from exiting a vehicle or ejecting?
Also, how would you make it so a trigger does not happen unless a member of a particular squad dies. Basically I have a minefield and when somebody dies in it I want the trigger to go off.
Cheers.
Last edited by erc; Jun 15 2009 at 11:46.
This might get kinda complicated because the AI will try to exit the vehicle if tires are broken, etc, but try this. Make a trigger, activated repeadetly, with condition:Another thing, how do you stop AI from exiting a vehicle or ejecting?
And on the activation field:Code:!unit in vehicle_name
That would move the unit back into the vehicle whenever he exits.Code:unit assignAsCargo vehicle_name; unit moveInCargo vehicle_name
First make a trigger and drag a group line between it and the group. This will give the trigger new activation options. From those choose "Whole group" and "Not alive". This would make the trigger activate when either of the group member has died. Put in the activation field whatever you want to happen after that.Also, how would you make it so a trigger does not happen unless a member of a particular squad dies. Basically I have a minefield and when somebody dies in it I want the trigger to go off.
Thanks a lot for your help. I got it all going good.![]()