Home   Help Search Login Register  

Author Topic: detect player not in car  (Read 813 times)

0 Members and 1 Guest are viewing this topic.

MadFred

  • Guest
detect player not in car
« on: 23 Nov 2003, 11:31:30 »
Hello,

I have a guy (m1) who has to go to a certain spot. He has two vehicles at his disposal to get there (c1 and c2).
When he gets to where he should go he has to meet up with someone (m2)

I want to trigger a cutscene, and the condition for this has to be that he should be closer than 10 meters from the second guy, AND not in the car he used..

so far I have this in a trigger

m1 distance m2 <10 && !m1 in c1 && !m1 in c2

this doesnt seem to work as I get an error.... can anyone point me in the right direction?

thanks

Offline Igor Drukov

  • Contributing Member
  • **
  • Conscientious Subjector
Re:detect player not in car
« Reply #1 on: 23 Nov 2003, 11:52:56 »
Hey !

Try this :

Code: [Select]
(m1 distance m2)<10 and (vehicle player == player)

Ig.
« Last Edit: 23 Nov 2003, 11:53:24 by Igor Drukov »

MadFred

  • Guest
Re:detect player not in car
« Reply #2 on: 23 Nov 2003, 12:05:09 »
a few minutes ago I got another solution from someone that worked.

m1 distance m2 < 10 && !(player in c1) && !(player in c2);

as is works I'm sticking with that, your reply is however much appreciated,

thanks

*solved*