OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: EFileTahi-A on 18 Aug 2003, 19:16:44
-
Hello folks it has been a while since I last come here... (about september 2002)
I would like to kown a few things:
1 - How can I fire a trigger only when a certain menbers are present in it?
Say, I want to trigger it only when some my man are present with an specific
enemy
2 - Is is possible to use the "hint" command only to a specific person?
To make it privete and not global.
3 - How can I get the name of a man that first fired a trigger?
Tks 4 ur attention!
-
1. Create your trigger. Now group it to the leader of the group you want to fire it, as if it was another loon. You now have new options in the Activation box.
2. Dunno. Suspect not.
3. Every trigger returns the array thislist which is an array listing all the units that would fire the trigger. (At least I think that's what it is, there may be slightly more to it than that.) So you would have something like:-
On Activation: hint format ["The trigger was fired by %1", thislist select 0]
Syntax not guaranteed and I'm not sure if it will work, but worth a try.
PS - Welcome back!
-
Hello,
Tks 4 the help but I still haven't figure out how to do those things...
The "hint format ["The trigger was fired by %1", thislist select 0]" its kind of strange
because some times it says <null> then sometimes says Guer Blue:1 or something...
And am the one who is always triggering it... anyway i can't get the name of the unit anyway :( I mean the name that i put in my soldiers (resistance1, resistance2... 8)
So i can't work on that...
If "hints" are public how can be missions in multipayer that says :
"Warning u are leaving area limite" - We never kown to who is the messenge..."
Tks 4 ur attention once more... and incoming help will be tremendious apreciated...
sry 4 my crappy engish...
-
i think a hint can be private, so when you want the himt to activate, on activation of the trigger: [dude] exec "hint.sqs"
might work
-
ever tried to un-pbo an mplayer mission?