Home   Help Search Login Register  

Author Topic: Player force eject?  (Read 3908 times)

0 Members and 1 Guest are viewing this topic.

Offline stephen271276

  • Members
  • *
Player force eject?
« on: 21 Feb 2011, 16:55:08 »
Hi How can I force eject a player in a WP from the vehicle he is driving???

Offline F2kSel

  • Members
  • *
Re: Player force eject?
« Reply #1 on: 21 Feb 2011, 17:35:15 »
Code: [Select]
player action["eject",car]
Code: [Select]
player action["getout",car]
take your pick.

car being the name of the vehicle.

Offline stephen271276

  • Members
  • *
Re: Player force eject?
« Reply #2 on: 21 Feb 2011, 19:04:34 »
Thankyou

Offline Zipper5

  • BIS Team
  • ****
Re: Player force eject?
« Reply #3 on: 22 Feb 2011, 20:42:07 »
If the player is a subordinate in a squad, or if you plan to use this with AI units as well, be sure to also use the following:
Code: [Select]
unassignVehicle unit;Obviously, replace unit with the name of the unit you have ejecting. This will stop the AI squad leader from telling the player to reembark the vehicle once they've ejected, and will prevent AI units in general from automatically reembarking the vehicle anyway.