i have searched through the forum and I am completely lost, and the scripting tutorial doesn't show what I want to do or I just don't understand it.
I am trying to make a trigger that does something after 5 seconds. when I tried to do the send to world(speedwalk) and having speedwalk set to 5000 miliseconds it didn't fire at all.
so I am trying to do it through a script
in the script file I have the follow I got from another post on the forum changed to fit what I need.
sub OnLax(tname, line, wildcards)
world.DoAfter 5, "tug light"
end sub
and it gives me an error i dont understand
Error number: 0
Event: Compile error
Description: [string "Script file"]:1: '=' expected near 'OnLax'
Called by: Immediate execution
i have the trigger set to send to world
the label field is tug
the script field is OnLax
enabled is checked
I do not know what I am doing so do not know what I am doing wrong.
please help
I am trying to make a trigger that does something after 5 seconds. when I tried to do the send to world(speedwalk) and having speedwalk set to 5000 miliseconds it didn't fire at all.
so I am trying to do it through a script
in the script file I have the follow I got from another post on the forum changed to fit what I need.
sub OnLax(tname, line, wildcards)
world.DoAfter 5, "tug light"
end sub
and it gives me an error i dont understand
Error number: 0
Event: Compile error
Description: [string "Script file"]:1: '=' expected near 'OnLax'
Called by: Immediate execution
i have the trigger set to send to world
the label field is tug
the script field is OnLax
enabled is checked
I do not know what I am doing so do not know what I am doing wrong.
please help