Page 1 of 1

Spawning triggers

Posted: Tue May 10, 2005 8:52 pm
by lizardkid
Cant find my old post on this :S

how do i spawn triggers?

spawn trigger_teleport "target" "dest"

and something about setsize.

Posted: Tue May 10, 2005 10:43 pm
by ViPER
i have seen a few but i like this one best as it is only one line for each additional teleport

teleports:

thread trigger_maker ( x x x ) ( x x x ) //(from) (to) 1
thread trigger_maker ( x x x ) ( x x x ) //(from) (to) 2
thread trigger_maker ( x x x ) ( x x x ) //(from) (to) 3
thread trigger_maker ( x x x ) ( x x x ) //(from) (to) 4

end

trigger_maker local.location local.dest:

local.marker = spawn script_model
local.marker model "static/corona_orange.tik"
local.marker.origin = (local.location)

local.trig = spawn trigger_multiple
local.trig.origin = (local.location)
local.trig setsize ( -20 -20 -20 ) ( 20 20 20 )
thread teleport local.trig local.dest

end

teleport local.trig local.dest:

local.trig waittill trigger
local.player = parm.other
local.player tele (local.dest)
thread teleport local.trig local.dest

end

Posted: Wed May 11, 2005 1:37 am
by lizardkid
It's just for my clan leader who found out i knew how to mod prety well, now he wants me to throw in some mods lol.

I was thinking spawn a trigger_teleport and a func_dest, it's all i need is just one spot, dont need to worry with tele or anything i dont think...

but the setsize is mainly what i was after :D

thanks

ok, now i dont rememeber how the setsize works... it works by length of edges i know, but which edges go first/second/third etc?

Posted: Wed May 11, 2005 10:30 am
by agentmad007
I don't think you can spawn a func Telepordest....i am not sure , correct me if i am wrong.

and setsize work like that : ( -x -y -z ) ( x y z )

Posted: Thu May 12, 2005 3:14 pm
by bdbodger
You can spawn a trigger_teleport and a func_teleportdest