Home
Intel Depot
Editors Depot
Missions Depot
Addons Depot
Forum
Home
Help
Search
Login
Register
OFPEC Forum
»
Editors Depot - Mission Editing and Scripting
»
OFP - Editing/Scripting General
(Moderators:
h-
,
savedbygrace
,
Gruntage
) »
A little help.. how to check if someone is in a vehicle as a condition
« previous
next »
Send this topic
Print
Pages: [
1
]
Go Down
Author
Topic: A little help.. how to check if someone is in a vehicle as a condition (Read 1166 times)
0 Members and 1 Guest are viewing this topic.
RolsRois
Members
I'm not sure of who i am anymore
A little help.. how to check if someone is in a vehicle as a condition
«
on:
28 Dec 2008, 20:11:28 »
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
»
Logged
Rambm Workshop, A New way of playing OFP
http://www.freewebs.com/rambm/
yes its on freewebs! Got a problem?
zwobot
Members
Re: A little help.. how to check if someone is in a vehicle as a condition
«
Reply #1 on:
28 Dec 2008, 21:22:27 »
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
»
Logged
"Executing tactics in real combat is the hardest thing one can ever do...well I've never given birth but..well whatever."
Raptorsaurus
Editors Depot Staff
Re: A little help.. how to check if someone is in a vehicle as a condition
«
Reply #2 on:
28 Dec 2008, 21:24:12 »
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
»
Logged
NightJay0044
Former Staff
Let's make OFPEC great again
Re: A little help.. how to check if someone is in a vehicle as a condition
«
Reply #3 on:
05 Jan 2009, 06:43:54 »
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.
I think that's right.
Logged
Who's hyped for Arma4, long live Arma!
RolsRois
Members
I'm not sure of who i am anymore
Re: A little help.. how to check if someone is in a vehicle as a condition
«
Reply #4 on:
06 Jan 2009, 10:53:42 »
Thanks guys worked pretty well/
Logged
Rambm Workshop, A New way of playing OFP
http://www.freewebs.com/rambm/
yes its on freewebs! Got a problem?
Send this topic
Print
Pages: [
1
]
Go Up
« previous
next »
OFPEC Forum
»
Editors Depot - Mission Editing and Scripting
»
OFP - Editing/Scripting General
(Moderators:
h-
,
savedbygrace
,
Gruntage
) »
A little help.. how to check if someone is in a vehicle as a condition
Top of page