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
) »
Detecting which unit activated an action
« previous
next »
Send this topic
Print
Pages: [
1
]
Go Down
Author
Topic: Detecting which unit activated an action (Read 524 times)
0 Members and 1 Guest are viewing this topic.
Combat-Agent
Guest
Detecting which unit activated an action
«
on:
30 Dec 2005, 21:04:50 »
Is there a way to detect which unit activated an action? Here is the the syntax:
[this,(UNIT WHO ACTIVATED ACTION),"wtypeA"] exec "script.sqs"
Logged
THobson
OFPEC Patron
Former Staff
Re:Detecting which unit activated an action
«
Reply #1 on:
30 Dec 2005, 21:13:38 »
Have a look at the Comref on Addaction - particularly the notes:
http://www.ofpec.com/editors/comref.php?letter=A#addAction
_obj = _this select 0
_man = _this select 1
_index = _this select 2
_obj is the object the action is on
_man is the unit that actioned the action
_index is the action index number
«
Last Edit: 30 Dec 2005, 21:14:05 by THobson
»
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
) »
Detecting which unit activated an action
Top of page