Page 1 of 1
waypoints executing threads?
Posted: Wed Sep 21, 2005 9:15 pm
by Master-Of-Fungus-Foo-D
i think i remember from somewhere that there was a command that would make a waypoint node execute a thread when it was reached... is there one?
if there isnt, how could i make an info_waypoint execute a thread when it was reached?
Posted: Thu Sep 22, 2005 2:15 am
by bdbodger
The global/bomber.scr just runs a thread to check when the plane is near the node then checks for a setthread key being set and runs a thread in the level.script ( you have to set level.script = <map script name here> for it to work )
while (local.range > 200)
{
local.oldrange = local.range
local.range = vector_length (self.origin - $("bomberplane" + local.name).origin)
wait 0.1
}
....
....
....
if (self.setthread)
{
println ("Bomb from set " + local.name + " threading " + self.setthread)
$("bombdrop" + local.num) thread level.script::self.setthread
}