runtime error: bad index
proc name: action (/mob/proc/action)
usr: null
src: Panda dude XD (/mob/create_character)
call stack:
Panda dude XD (/mob/create_character): action(369)
Code:
mob
var
tmp/freeze_time = 0
proc
frozen()
return world.time < freeze_time
freeze(ticks)
if(icon_state=="jumping")
decel=5
else
vel_x=0
vel_y=0
freeze_time = max(freeze_time,world.time+ticks)
action()
if(frozen())
return
..()
Problem description:
I tried out my game and it was lagging pretty bad so i checked Dream daemons log and as soon as anyone logs in those errors keep popping up, so i searched for where i had anything that said "action" and it was just used for this proc. So can someone help me figure out a "better index" to define action so i can minimize the lag on my game please?