Warning: include(/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php): failed to open stream: No such file or directory in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Warning: include(): Failed opening '/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php' for inclusion (include_path='.:/usr/local/lib/php') in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Notice: Undefined index: OFPEC in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152
    Home   Help Login Register  

Author Topic: Player force eject?  (Read 5753 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.