I m lezy i can't find the solution after a lot of modification now the script , just dont want to work.
Wanted a teleportation (forth and back) via ring.
In my test map i have 2 small places and i want to teleport from each one.
place 1 contains:
5 rings classname:script object (targetname: ring 1 2 3 4 5 )
1 trigger_multiple $ring_trigger
1 trigger_teleport $ringteleport_trigger
1 script_origin $ring_arrival2 (targeted with the other trigger_teleport of place2)
place 2 contains:
5 rings classname:script object (targetname: ring 1_1 2_2 3_3 4_4 5_5 )
1 trigger_multiple $ring_trigger2
1 trigger_teleport $ringteleport_trigger2
1 script_origin $ring_arrival (targeted with the other trigger_teleport of place1)
well hope you understoo until here
script:
Code: Select all
main:
// set scoreboard messages
setcvar "g_obj_alliedtext1" ""
setcvar "g_obj_alliedtext2" ""
setcvar "g_obj_alliedtext3" ""
setcvar "g_obj_axistext1" ""
setcvar "g_obj_axistext2" ""
setcvar "g_obj_axistext3" ""
setcvar "g_scoreboardpic" "none"
local.master = spawn ScriptMaster
local.master aliascache ring sound/amb/transring.wav soundparms 2.0 0.0 1.0 0.0 200 4000 auto loaded maps "m dm obj"
level waittill prespawn
exec global/DMprecache.scr
level.script = "maps/dm/testring.scr"
thread ring_teleporter_forth
thread ring_teleporter_back
$ringteleport_trigger nottriggerable
$ringteleport_trigger2 nottriggerable
level waittill spawn
end
ring_teleporter_forth:
local.ringuser = parm.other
$ring_trigger waittill trigger
local.ringuser playsound ring
$ring1 waitmovedown 100
$ring1 waitmove
$ring1 time .4
$ring1_1 waitmovedown 100
$ring1_1 waitmove
$ring1_1 time .4
$ring2 waitmovedown 100
$ring2 waitmove
$ring2 time .4
$ring2_2 waitmovedown 100
$ring2_2 waitmove
$ring2_2 time .4
$ring3 waitmovedown 100
$ring3 waitmove
$ring3 time .4
$ring3_3 waitmovedown 100
$ring3_3 waitmove
$ring3_3 time .4
$ring4 waitmovedown 100
$ring4 waitmove
$ring4 time .4
$ring4_4 waitmovedown 100
$ring4_4 waitwaitmove
$ring4_4 time .4
$ring5 waitmovedown 100
$ring5 waitmove
$ring5 time .4
$ring5_5 waitmovedown 100
$ring5_5 waitmove
$ring5_5 time .4
$ringteleport_trigger triggerable //TELEPORT ACTIVE
wait .2
$ringteleport_trigger nottriggerable //TELEPORT INACTIVE
$ring5 waitmoveup 100
$ring5 waitmove
$ring5 time .4
$ring5_5 waitmoveup 100
$ring5_5 waitmove
$ring5_5 time .4
$ring4 waitmoveup 100
$ring4 waitmove
$ring4 time .4
$ring4_4 waitmoveup 100
$ring4_4 waitmove
$ring4_4 time .4
$ring3 waitmoveup 100
$ring3 waitmove
$ring3 time .4
$ring3_3 waitmoveup 100
$ring3_3 waitmove
$ring3_3 time .4
$ring2 waitmoveup 100
$ring2 waitmove
$ring2 time .4
$ring2_2 waitmoveup 100
$ring2_2 waitmove
$ring2_2 time .4
$ring1 waitmoveup 100
$ring1 waitmove
$ring1 time .4
$ring1_1 waitmoveup 100
$ring1_1 waitmove
$ring1_1 time .4
goto ring_teleporter_forth
end
ring_teleporter_back:
local.ringuser = parm.other
$ring_trigger2 waittill trigger
wait .2
local.ringuser playsound ring
$ring1 waitmovedown 100
$ring1 waitmove
$ring1 time .4
$ring1_1 waitmovedown 100
$ring1_1 waitmove
$ring1_1 time .4
$ring2 waitmovedown 100
$ring2 waitmove
$ring2 time .4
$ring2_2 waitmovedown 100
$ring2_2 waitmove
$ring2_2 time .4
$ring3 waitmovedown 100
$ring3 waitmove
$ring3 time .4
$ring3_3 waitmovedown 100
$ring3_3 waitmove
$ring3_3 time .4
$ring4 waitmovedown 100
$ring4 waitmove
$ring4 time .4
$ring4_4 waitmovedown 100
$ring4_4 waitwaitmove
$ring4_4 time .4
$ring5 waitmovedown 100
$ring5 waitmove
$ring5 time .4
$ring5_5 waitmovedown 100
$ring5_5 waitmove
$ring5_5 time .4
$ringteleport_trigger2 triggerable //TELEPORT ACTIVE
wait .2
$ringteleport_trigger2 nottriggerable //TELEPORT INACTIVE
$ring5 waitmoveup 100
$ring5 waitmove
$ring5 time .4
$ring5_5 waitmoveup 100
$ring5_5 waitmove
$ring5_5 time .4
$ring4 waitmoveup 100
$ring4 waitmove
$ring4 time .4
$ring4_4 waitmoveup 100
$ring4_4 waitmove
$ring4_4 time .4
$ring3 waitmoveup 100
$ring3 waitmove
$ring3 time .4
$ring3_3 waitmoveup 100
$ring3_3 waitmove
$ring3_3 time .4
$ring2 waitmoveup 100
$ring2 waitmove
$ring2 time .4
$ring2_2 waitmoveup 100
$ring2_2 waitmove
$ring2_2 time .4
$ring1 waitmoveup 100
$ring1 waitmove
$ring1 time .4
$ring1_1 waitmoveup 100
$ring1_1 waitmove
$ring1_1 time .4
goto ring_teleporter_back
end
end
before i manages to make the ring moves , sound playing but just for the forth , now i wanted the forth and back then i have no results
Hope you can help thank you


