I use " viewpos " for coord and use this script :
Code: Select all
tele_test1:
local.lights1 = spawn script_model "model" "fx/corona_red.tik"
local.lights1.origin = ( 5013 -3343 339 )
local.trig1 = spawn trigger_multiple
local.trig1.origin = ( local.lights1.origin )
local.trig1 setsize ( -20 -20 0 ) ( 20 20 80 )
local.trig1 waittill trigger
parm.other tele ( 2501 -2019 209 )
parm.other.viewangles = ( 0 -55 0 )
local.lights1 remove
local.trig1 remove
wait 5
thread tele_test1
end
tele_test2:
local.lights2 = spawn script_model "model" "fx/corona_red.tik"
local.lights2.origin = ( 621 203 247 )
local.trig2 = spawn trigger_multiple
local.trig2.origin = ( local.lights2.origin )
local.trig2 setsize ( -20 -20 0 ) ( 20 20 80 )
local.trig2 waittill trigger
parm.other tele ( 2305 -1794 21 )
parm.other.viewangles = ( 0 -130 0 )
local.lights2 remove
local.trig2 remove
wait 5
thread tele_test2
endthe sec one is in the pub in allies spawn and supose to teleport to the center house first floor Under kitchen (but the corona doesnt appear and not working)
can someone help me with this and explain me why the first one work and not the second one?
And does the viewangle is important ?
Thanks a lot !!
Gr3ko.