View Full Version : Trigger Trouble...
Hi all...got a small problem with a trigger.
In my mission the player is getting flown in by chopper to an airfield, where a civilian is waiting in front of a car.
My player is supposed to activate a trigger in front of the civilian with a time delay of 10 seconds, then the civilian will enter the car as driver. The trigger is a 5-by-5, grouped with the player.
Problem is...the trigger activates as soon as the mission starts.
I've tried all kind of things... putting "EnterJeep" in the condition field of the WP and "EnterJeep = true" in the Activation field of the trígger. I've tried syncing them...nothing seems to work. It just starts to countdown as soon as the mission starts.
I could put the time to 170 seconds (the time it takes the chopper to touch down and my player to greet the civilian driver). However, the chopper doesn't do the landing in the same time every time, so it gets unprecise.
Anyone got any suggestions?
Nov 8 2001, 11:55
For the civillian get in waypoint, in the "condition field", put in a condition like "get_in" and a time delay for however long. For the player's waypoint (the one where he arrives at the car) write "get_in=true" in the activation field.
The civillian should only get in once the wapoint is reached by the player, after the time delay.
the trigger shoudn't activate at all if its grped with u.
not until u get to it anyway......
Yeah, Rob... I know. But it does anyway. And yes, I have checked (and double- and trible checked)... the trigger is linked to my player.
I've put "NOT (Player in Heli1)" in the Condition field of the trigger now, which makes the timing more accurate.
However, it still activates as soon as the Player leaves the chopper, even though the trigger isn't anywhere near the landing spot. Weird....
Perhaps I may contribute to this solution...
I used to have a mission where my triggers would fire IMMEDIATELY upon killing all enemies, before I (the player) can actually reach the trigger to set it off. Yes, I did group it to my player too.
The problem is, as I found out later, is that in the condition field of the trigger, I put "alldead == 1". So, the trigger would go off as soon as all enemies are dead (which set off another trigger activating "alldead = 1".
So, I fixed it by saying "this AND alldead == 1", so now the trigger WAITS for my player to arrive within the triggering area THEN goes off, since I have already killed all the enemies somewhere else.
So, I'd hazard a guess that if you were to change the condition to "this AND (NOT (Player in Heli))" it would work...
I'd presume that the "this" keyword in the condition field of a trigger would mean "The way this trigger is set up".. so, without the "this" previously, my trigger didn't care if I were not around in the triggering area... it just goes off as soon as "alldead" is "1".
Nov 9 2001, 10:02
Stupid question, but
does your trigger have on its condition-field "true"?
If this is so, change it to "this"
Got it working, using EliTe's solution to the problem...thanks, mate!
No sweat Stenger.... all I ask is that u put your mission up for download when you're done... http://www.flashpoint1985.com/ikonboard3/non-cgi/emoticons/smile.gif I wanna play it I wanna play it!!!!!!
Nov 12 2001, 11:56
Sure thing... It's my first attempt at using the Editor, at least seriously. I intend the current mission to be the introduction mission to a larger campaign... not much action (a little, of course http://www.flashpoint1985.com/ikonboard3/non-cgi/emoticons/smile.gif ) but that will come in later mission. I'll let you know... got a mail-address?
</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote </td></tr><tr><td id="QUOTE">Quote: from Stenger on 2:56 pm on Nov. 12, 2001
I'll let you know... got a mail-address?[/QUOTE]<span id='postcolor'>
Sure... write to me at (foxtwo at singapore dot com). Sorry for the roundabout way to give my email address, I don't want any web spiders to lift it off this site and use it for spamming... http://www.flashpoint1985.com/ikonboard3/non-cgi/emoticons/smile.gif
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.