Home   Help Search Login Register  

Author Topic: A little help.. how to check if someone is in a vehicle as a condition  (Read 1094 times)

0 Members and 1 Guest are viewing this topic.

Offline RolsRois

  • Members
  • *
  • I'm not sure of who i am anymore
    • Rambm Workshop
if i have a unit, and i want the condition for a certain trigger to be if that specific unit is now inside a truck, whats the command?
cheerz
« Last Edit: 29 Dec 2008, 03:57:33 by Planck »
Rambm Workshop, A New way of playing OFP
http://www.freewebs.com/rambm/
yes its on freewebs! Got a problem?

Offline zwobot

  • Members
  • *
in - if you want to check if the unit is in a specific vehicle
vehicle - if you want to check if it is in any vehicle (if it does not return the unit itsself the unit is not inside a vehicle)
« Last Edit: 29 Dec 2008, 03:58:07 by Planck »
"Executing tactics in real combat is the hardest thing one can ever do...well I've never given birth but..well whatever."

Offline Raptorsaurus

  • Editors Depot Staff
  • *****
If you know the specific truck then you can do somthing like: unit in truck1 ; where unit is the name of the unit and truck1 is the name of the truck. If you do not know the variable name for the vehicle the unit is in then you can do: vehicle unit != unit ; where unit is the name of the unit.
« Last Edit: 29 Dec 2008, 03:58:21 by Planck »

Offline NightJay0044

  • Former Staff
  • ****
  • Let's make OFPEC great again
    • My Steam Workshop
Yes exactly. Say if you want to check to see if a soldier is inside a jeep..

Name the jeep: Jeep1
Name the soldier: Soldier1
(keep it simple)

Put this in the condition field of the trigger or waypoint of your desire.

Quote
Soldier1 in Jeep 1


This will check to see if this condition is true. :D

I think that's right.
Who's hyped for Arma4, long live Arma!

Offline RolsRois

  • Members
  • *
  • I'm not sure of who i am anymore
    • Rambm Workshop
Thanks guys worked pretty well/
Rambm Workshop, A New way of playing OFP
http://www.freewebs.com/rambm/
yes its on freewebs! Got a problem?