Spawn Script

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
SNakeFluGeL
Sergeant
Posts: 56
Joined: Wed Jul 02, 2003 4:52 pm

Spawn Script

Post 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?
User avatar
The Jackal
Sergeant Major
Posts: 101
Joined: Wed May 07, 2003 10:09 am
Contact:

Post 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!
SNakeFluGeL
Sergeant
Posts: 56
Joined: Wed Jul 02, 2003 4:52 pm

Post 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) ??
User avatar
The Jackal
Sergeant Major
Posts: 101
Joined: Wed May 07, 2003 10:09 am
Contact:

Post 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?
Post Reply