Would this work?
Moderator: Moderators
Would this work?
lets said i had a variable "level.continue = 0" after 20 seconds, it becomes "level.continue = 1". if i had a trigger that calls a thread in a script, would this line work?
self waittill level.continue == 1
???
self waittill level.continue == 1
???
better
try this:
self waittill (level.continue == 1)
You need to explain better what you are trying to do.
self waittill (level.continue == 1)
You need to explain better what you are trying to do.
i want to pass thru a trigger. the trigger sets a thread named "blah". when teh trigger is set, it WAITS until a variable is changed to 1 before executing. the variable is changed to 1 when the captain is at a specific trigger. i want to do this so that you cant just run ahead of your captain and screw up all the scripted events.
trigger
Why not just turn the trigger off untill the captain gets there?
$mytrigger nottriggerable
$mytrigger triggerable
Also, how does your script know the captain is at the right spot? AI can't trip triggers, but you can set an origin as his destination. I'm probably not the right guy to ask about this stuff. Which singleplayer script are you using as a guide?
$mytrigger nottriggerable
$mytrigger triggerable
Also, how does your script know the captain is at the right spot? AI can't trip triggers, but you can set an origin as his destination. I'm probably not the right guy to ask about this stuff. Which singleplayer script are you using as a guide?
continue
Use what jv_map has and put the self stuff below it. You can add this to your captain thread:
if (level.captain istouching $trigger)
{
iprintln "captain is at trigger"
level.continue = 1
end
}
That is not a very original targetname for a trigger, ha ha. In most scripts they call the captain "level.friendly1", I think.
if (level.captain istouching $trigger)
{
iprintln "captain is at trigger"
level.continue = 1
end
}
That is not a very original targetname for a trigger, ha ha. In most scripts they call the captain "level.friendly1", I think.
Re: continue
in your script, you can give them an alias. i typed:tltrude wrote:Use what jv_map has and put the self stuff below it. You can add this to your captain thread:
if (level.captain istouching $trigger)
{
iprintln "captain is at trigger"
level.continue = 1
end
}
That is not a very original targetname for a trigger, ha ha. In most scripts they call the captain "level.friendly1", I think.
level.captain = level.friendly1
its easier for me because later i wont remember which friendly is which.

