Loopy Plane

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
User avatar
Gen Cobra
Major General
Posts: 739
Joined: Tue Jan 28, 2003 4:26 pm

Loopy Plane

Post by Gen Cobra »

How do i get a string of plane splines to loop. Or just have a trigger that respawns after a scripted time integer? Ya know, so I can see the plane again if I pass through the trigger again later.
Image
User avatar
mohaa_rox
Field Marshal
Posts: 2760
Joined: Mon Nov 11, 2002 7:05 am
Contact:

Post by mohaa_rox »

Try to join the last point to the first one and will do a loop.
Live to map, not map to live.
-mohaa_rox, .map
moderator
User avatar
Gen Cobra
Major General
Posts: 739
Joined: Tue Jan 28, 2003 4:26 pm

Post by Gen Cobra »

What do you mean ROX? The splines? Have the last one loop back to the original target ? Or... I don't understand. :? Can't I do something with the trigger instead?
Image
User avatar
mohaa_rox
Field Marshal
Posts: 2760
Joined: Mon Nov 11, 2002 7:05 am
Contact:

Post by mohaa_rox »

Yup, the last spline targets the first one, making it a loop circle. Or do a script, ask jv.
Live to map, not map to live.
-mohaa_rox, .map
moderator
User avatar
small_sumo
Lieutenant General
Posts: 953
Joined: Mon Jul 01, 2002 4:17 pm
Contact:

Post by small_sumo »

Awe poor jv with the world on his sholders lol.
User avatar
Gen Cobra
Major General
Posts: 739
Joined: Tue Jan 28, 2003 4:26 pm

Flying Fruit loop.

Post by Gen Cobra »

I think I musta worded it wrong. I want the animation to happen again later. I want my trigger to trigger... later. That's all. So the plane does the same eanimation again when the trigger is used again. Do i use a wait key? Like wait 10 or 15?
Great idea about the loop on the plane though.
Image
TheShiznaeSpe
Major
Posts: 304
Joined: Wed Feb 05, 2003 11:45 pm
Location: US
Contact:

Post by TheShiznaeSpe »

there's a backwards way to do it

make two sets of triggers and planes

one with #set 1 and one with #set 2

that was one trigger will activate the first plane and another will activate the 2nd
CHeesER
Corporal
Posts: 25
Joined: Wed Feb 19, 2003 2:55 am
Location: Canada

Post by CHeesER »

Ya Cobra you can,just create a trigger multiple.And add a few lines to your map scr.The setting in radiant would be like below:

key //value
#set // 3
$targetname // bombertrigger
classname // triggermultiple
setthread // reset_bomber_thread
spawnflags // 128
triggerable // 1
wait // .5

So basicly give it the #set of your plane,a$targetname for the trigger,set the thread to be used,and make it triggerable.

Now that the thread has been called you must add it to your map scr.Since your using a plane you already have exec global/bomber.scr in your script.You need to add after level waittill spawn, level.flyplane = 1 level.bomberrepeat = 1.Now for the script part,add the following lines:

reset_bomber_trigger:
wait 20
level.bombertriggerset[self.set] = 0
end

That script will rest the trigger,you can fool around with the wait time if you want.

I think thats it,hope it helps ya.
User avatar
Gen Cobra
Major General
Posts: 739
Joined: Tue Jan 28, 2003 4:26 pm

Post by Gen Cobra »

Thanks. I needed that. I have a better understanding of triggers now. I'll use your idea and try it out. 8)
Image
Post Reply