Results 1 to 5 of 5

Thread: Lock a vehicle/Remove "Get Out" Action/Prevent Exit

  1. #1
    Private First Class
    Join Date
    May 10 2008
    Location
    Behind You!
    Posts
    26

    Lock a vehicle/Remove "Get Out" Action/Prevent Exit

    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.

  2. #2
    Simply make a trigger with condition:

    Code:
    player in vehicle_name
    And then write on the activation field:

    Code:
    vehicle_name lock true
    This will lock the vehicle whenever the player enters it. If you wish to unlock it at some point, write "lock false" instead.

  3. #3
    Private First Class
    Join Date
    May 10 2008
    Location
    Behind You!
    Posts
    26
    Author of the Thread
    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.

  4. #4
    Another thing, how do you stop AI from exiting a vehicle or ejecting?
    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:

    Code:
    !unit in vehicle_name
    And on the activation field:

    Code:
    unit assignAsCargo vehicle_name; unit moveInCargo vehicle_name
    That would move the unit back into the vehicle whenever he exits.

    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.
    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.

  5. #5
    Private First Class
    Join Date
    May 10 2008
    Location
    Behind You!
    Posts
    26
    Author of the Thread
    Thanks a lot for your help. I got it all going good.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •