Moving Objects Scripting Help


(cremator) #1

I read a post that had:
trigger run_stage1
{
followspline globalaccum 0 spln0 50 wait length 32
}

in a script. I was curious to what the “trigger run_stage1” refers to…i plan to make some moving objects in a map and am currently learning as much about scripting as possible. Thx in advance.


(Mean Mr. Mustard) #2

I like to think of the keyword ‘trigger’ as equivalent to ‘subroutine’ or ‘function’, etc in other computer languages. (at least this hleps me :smiley: )

Then a routine like ‘trigger run_stage1’ can be called/activated some where else in the script.

You can activate it by

trigger self run_stage1 (if it’s in the same section of the script)

or

trigger tank run_stage1 (if it’s contained in the ‘tank’ section in the script file)

Hope this helps


(Pukedukem) #3

for my truck enable_stage1 and disable_stage1 causes my truck to stop or go at a door.
just look to where its used again in the script and just keep trying to see what links to what in the script and you should
See the Light.