Home   Help Search Login Register  

Author Topic: Get Out and Stay Out!  (Read 619 times)

0 Members and 2 Guests are viewing this topic.

Offline Grinning_Giant

  • Members
  • *
  • Do not let them get away with it!
Get Out and Stay Out!
« on: 20 Jun 2003, 14:00:35 »
Hi Guys,

I used this script to boot a passenger out of a bus I'm driving.

Code: [Select]
;[B1, PA1] exec "Getout.sqs"

_Bus = _this select 0
_Man = _this select 1

#Update
? speed _Bus < 5 : goto "Getout"
~0.5
goto "Update"

#Getout
_Man action ["EJECT",_Bus]
exit

The passenger was added using the MoveinCargo command.

The problem is; as soon as the guy ejects he runs to get back in my bus again... What command do I use to make him get out and move to his next waypoint on foot.

VUSN042

  • Guest
Re:Get Out and Stay Out!
« Reply #1 on: 20 Jun 2003, 14:14:27 »
Try unassigning him from the vehicle before ejecting him...

deaddog

  • Guest
Re:Get Out and Stay Out!
« Reply #2 on: 20 Jun 2003, 14:15:39 »
Insert this line after the action command:

unassignvehicle _man

This is always needed after using the "eject" action.

 :)


*EDIT*

Yeah, what he said...  ;D
« Last Edit: 20 Jun 2003, 14:16:50 by deaddog »

Offline Grinning_Giant

  • Members
  • *
  • Do not let them get away with it!
Re:Get Out and Stay Out!
« Reply #3 on: 20 Jun 2003, 14:24:31 »
 8) Good work guys!

Thanks  :-*