Code: Select all
while(1)
{
local.player = parm.other
local.teletrigg waittill trigger
if(local.player.useheld == 1)
{
local.start_snd playsound beam_off
local.player tele ( local.teleporter.end )
local.dest_snd playsound snd_b_zing8
local.teletrigg nottriggerable
local.beam scale 1
local.hum stoploopsound
wait 25
local.teletrigg triggerable
local.hum loopsound beam_on
local.beam scale 25
}
waitframe
}Everytime I test this out, the very first time I trip the the trigger or try to, I get this error in console:
Code: Select all
*Area51*G3mInI_2LT has joined the Allies
if(local.player.useheld == 1) (global/g3mini_teleporter.scr, 59)
if(local.player^
^~^~^ Script Error: Field 'useheld' applied to NULL listener
if(local.player.useheld == 1) (global/g3mini_teleporter.scr, 59)
if(local.player^
^~^~^ Script Error: Field 'useheld' applied to NULL listenerThe trigger does work everytime and the player does teleport. The next time I go to the trigger, there is never anymore errors. This error only appears the very first time I try to use the trigger after the map is loaded. Any ideas why ?
G3mInI
