Spawning triggers

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
lizardkid
Windows Zealot
Posts: 3672
Joined: Fri Mar 19, 2004 7:16 pm
Location: Helena MT

Spawning triggers

Post by lizardkid »

Cant find my old post on this :S

how do i spawn triggers?

spawn trigger_teleport "target" "dest"

and something about setsize.
Moderator

۞
Abyssus pro sapientia
Olympus pro Ignarus
۞

AND STUFF™ © 2006
User avatar
ViPER
General
Posts: 1058
Joined: Fri Jan 14, 2005 5:48 pm
Location: California
Contact:

Post 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
lizardkid
Windows Zealot
Posts: 3672
Joined: Fri Mar 19, 2004 7:16 pm
Location: Helena MT

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

۞
Abyssus pro sapientia
Olympus pro Ignarus
۞

AND STUFF™ © 2006
agentmad007
Brigadier General
Posts: 570
Joined: Tue Feb 24, 2004 3:52 pm

Post 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 )
Deadly and slient.
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_teleport and a func_teleportdest
Image
Post Reply