Little clarification pls :)

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
Uknowme
Colour Sergeant
Posts: 84
Joined: Thu May 26, 2005 8:30 am

Little clarification pls :)

Post by Uknowme »

Ok, I dont frequent the scripting section often but I could do with some assistance....
Right I want to have explosions whilst running down the street, I'm familiar with the exploder script but my question is:
How do I trigger an explosion when I reach a certain point, obviously this I would assume is using the trigger but is it trigger multiple,trigger use (I doubt it)..I just am unclear.
If it was for instance trigger whatever, then I assume that the target name would aim towards the explosion.
As said I'm familiar with an objective explosion but I simply want an explosion to occur when I pass a certain point in the map.
Any simple to understand answer would be much appreciated.
User avatar
bdbodger
Moderator
Posts: 2596
Joined: Tue Feb 25, 2003 7:34 am
Location: canada
Contact:

Post by bdbodger »

You can spawn a trigger_multiple and run a thread with setthread . To make an explosion just use something like this

exec global/model.scr ( <coords> ) <explosion model> <scale>

where you see the < and > put in your values but all you need is the coords if you don't set a model it uses models/emitters/explosion_mine and you do not have to set a scale . If you only want 1 explosion then put

self remove

in your thread that will delete the trigger or you can use a trigger_once I belive but I have never used it before .
Image
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

Exploder

Post by tltrude »

Maybe you missed this part of the exploder script.
You can create an explodertrigger (with the same #set), or just do "thread global/exploder.scr::explode #" (# being the #set value of the exploder in question).
In other words, You can create a bunch of trigger_multiple all target named "explodertrigger". Then add a #set value (like you do for the other exploder parts) to tell each trigger which exploder to set off.
Tom Trude,

Image
Post Reply