Cant find my old post on this :S
how do i spawn triggers?
spawn trigger_teleport "target" "dest"
and something about setsize.
Spawning triggers
Moderator: Moderators
Spawning triggers
Moderator
۞
Abyssus pro sapientia
Olympus pro Ignarus
۞
AND STUFF™ © 2006
۞
Abyssus pro sapientia
Olympus pro Ignarus
۞
AND STUFF™ © 2006
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
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
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
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?
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
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?
Moderator
۞
Abyssus pro sapientia
Olympus pro Ignarus
۞
AND STUFF™ © 2006
۞
Abyssus pro sapientia
Olympus pro Ignarus
۞
AND STUFF™ © 2006
-
agentmad007
- Brigadier General
- Posts: 570
- Joined: Tue Feb 24, 2004 3:52 pm
