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
) »
Not in as M2 Gunner?
« previous
next »
Send this topic
Print
Pages: [
1
]
Go Down
Author
Topic: Not in as M2 Gunner? (Read 415 times)
0 Members and 1 Guest are viewing this topic.
GingaWRATH
Guest
Not in as M2 Gunner?
«
on:
10 Dec 2004, 13:37:12 »
Yoo guys any one know the command for checking if a guy is not in as an M2 Gunner?
eg,
ive got an addaction to move guy in gunner on vehicle
the gun then rises out of vehicle
when guy exits and the gun lowers.
I need the script to check when guy is nolonger in gunner m2
«
Last Edit: 10 Dec 2004, 13:41:56 by GingaWRATH
»
Logged
macguba
Former Staff
Re:Not in as M2 Gunner?
«
Reply #1 on:
10 Dec 2004, 13:40:04 »
gunner vehicle
Operand types:
vehicle: Object
Type of returned value:
Object
Description:
Gunner of the vehicle, if vehicle is not vehicle but person, person is returned.
Example:
gunner vehicle player
Logged
Plenty of
reviewed ArmA missions
for you to play
THobson
OFPEC Patron
Former Staff
Re:Not in as M2 Gunner?
«
Reply #2 on:
10 Dec 2004, 13:43:26 »
The M2 is treated as a vehicle so try:
not (guy in <nameofgun>)
or even:
vehicle guy != <nameofgun>
or:
<nameofgun>G != guy
Edit: macguba posted as I was writing. So try also:
gunner <nameofgun> != guy
«
Last Edit: 10 Dec 2004, 13:45:10 by THobson
»
Logged
GingaWRATH
Guest
Re:Not in as M2 Gunner?
«
Reply #3 on:
10 Dec 2004, 14:01:04 »
Ye didnt think it was the same as a vehicle thanx i used
?not (guy in nameofgun)
worx great
Thanx again
Logged
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
) »
Not in as M2 Gunner?
Top of page