Page 1 of 1

How do i make a moving triger loop.

Posted: Mon Feb 10, 2003 6:48 pm
by Yarik
Ok i followed the directions in teh tut on making things move in game. So i went ahead and did it myself except without 2 wap points i made like 5 or six. And gave the last point this
targetname/wap6
target wap1

but when it got to wap one after making a full on sircle it just stoped.

Why is it? Doesnt wap1 say to go to wap2? but it stopped. Is there something i am supposed to add?

I used to program a little in qbasic and when you wanted to loop something you usuall type $ infront of whatever you wanted to loop. So is it possible i have to add something to target name like this?
targetname/ $wap1

Posted: Mon Feb 10, 2003 7:56 pm
by Angex
Well in MoHAA's scripting language the $ symbol tells the game that the string appened to it is a targetname, and not a variable name.

I got confused are you scripting the loop, or using the targetnames (probably better).

e.g. using the targetnames to produce a loop.

--WAYPOINT ONE--
KEY: $targetname
VALUE: wap1

KEY: target
VALUE: wap2

--WAYPOINT TWO--
KEY: $targetname
VALUE: wap2

KEY: target
VALUE: wap1

Then in your script add:

$thingtomovetargetname walkto $wap1

Or another suitable command (runto, drive etc.).

Posted: Mon Feb 10, 2003 8:31 pm
by Yarik
Thanks man i would try to do it once i get home from college. And yes i am using teh targetname and keyvalue in MOH radiant.