OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: ProudPotter2490 on 08 May 2005, 20:42:06
-
Hey guys!
I want to make a trigger where it'll only activate when one loon spots another loon. Simple query really :)! Thanks for any help.
ProudPotter2490 :afro:
-
Did you check this out? It just a little way down the page.
http://www.ofpec.com/yabbse/index.php?board=6;action=display;threadid=23543 (http://www.ofpec.com/yabbse/index.php?board=6;action=display;threadid=23543)
-
just for the sake of us lazy guys out there (myself)
put in the cond field of your trig.
loon1 knows about loon2 == 3< the higher the number the more loon1 has to know about him. 1-4 are the only numbers that compute with the computer.
later
-
Marcus3 is close, but I think there might be a problem with his suggestion:
"knows about" should be one word, and it is better to use >= or <= instead of ==
So, try this:
loon1 knowsabout loon2 >= 3
-Student Pilot
-
That's right about the ">". If you don't, the trigger may not activate because the knowsAbout score raised above the "==" before the trigger fired. Make sense?
I had something like that happened. Couldn't get a trigger to fire. Hacked me off. Furious, I got up and killed a hobo. Then, I figured out what happened.
Thanks,
ADM
-
Hey guys!
Thanks for the help. I got it sorted! Cheers :)!
ProudPotter2490 :afro: