OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: max_killer_payne on 02 Jul 2003, 19:26:00

Title: Detect if a player is in a vehicle
Post by: max_killer_payne on 02 Jul 2003, 19:26:00
I have a chopper called: (suprise) chopper

Then I have a man called: player

And another man called: pilot

whats the code line to detect if they're all inside the vehicle?? LCD u betta b online!! I need this fast!
Title: Re:Detect if a player is in a vehicle
Post by: Igor Drukov on 02 Jul 2003, 19:32:06
In a trigger :

condition : (player in chopper) and (pilot in chopper)
onactivation : whatever you need.
Title: Re:Detect if a player is in a vehicle
Post by: LCD on 02 Jul 2003, 19:33:55
u can do it in 2 wayz ;D

put in da activision of da triger

1) (pilot in chopper) and (player in chopper)

2) "_X in chopper" count [pilot,player] == 2

LCD OUT

[edit] i cant belive it  :o im geting slower  :-X but i provide more options ;D
Title: Re:Detect if a player is in a vehicle
Post by: max_killer_payne on 02 Jul 2003, 19:35:23
lol, cheers Igor Drunkov and LCD