Page 1 of 1

Spawn Script

Posted: Wed Sep 10, 2003 8:37 am
by SNakeFluGeL
I know you can spawn objects and triggers into the level...
but is it also possible to determine the size of the trigger? if so how?

Posted: Wed Sep 10, 2003 3:37 pm
by The Jackal
You can.

Code: Select all

local.mytrigger = spawn trigger multiple_all
local.mytrigger.origin = ( X Y Z ) // coords
local.mytrigger setsize ( -120.00 -120.00 0.00 ) ( 120.00 120.00 124.00 )
Hope this is what you needed!

Posted: Wed Sep 10, 2003 7:28 pm
by SNakeFluGeL
woops I see now that I posted the msg twice, sorry guys but thanks JAckal.... can you tell me or maybe a pic what those numbers stand for

(130 230 230) (x y z) ??

Posted: Wed Sep 10, 2003 8:21 pm
by The Jackal
X Y Z is the coordinates to given location. X is Origin[0] Y is Origin[1] Z is Origin [2].


Origin[0] runs East-West (0 ++ )
Origin[1] runs North-South ( 0 ++ )
Origin[2] runs vertical, UP-DOWN ( 0 -- )
---------------------------------------

In your initial post you asked how to determine the trigger size. I assumed you meant you wanted to spawn a trigger and set the size of the trigger.

local.mytrigger setsize ( -120.00 -120.00 0.00 ) ( 120.00 120.00 124.00 ) sets the boundaries of the trigger. Therefore the area within activates the trigger.

Helpful?