How do i make a moving triger loop.

If you're looking for mapping help or you reckon you're a mapping guru, post your questions / solutions here

Moderator: Moderators

Post Reply
Yarik
General
Posts: 1031
Joined: Thu Jan 09, 2003 7:12 pm
Contact:

How do i make a moving triger loop.

Post 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
Skype: Yarik_usa
www.skype.com <---free pc2pc phone
Image
Angex
Major
Posts: 293
Joined: Mon Dec 30, 2002 1:23 pm
Contact:

Post 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.).
Yarik
General
Posts: 1031
Joined: Thu Jan 09, 2003 7:12 pm
Contact:

Post 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.
Skype: Yarik_usa
www.skype.com <---free pc2pc phone
Image
Post Reply