Home   Help Search Login Register  

Author Topic: Stop moving you stupid grunt!  (Read 354 times)

0 Members and 1 Guest are viewing this topic.

Eater1

  • Guest
Stop moving you stupid grunt!
« on: 07 Mar 2003, 07:13:53 »
Does anyone have an idea about how I can get a grunt to stay in one place? He needs to be able to turn about and shoot, but I need him to stand in one spot while doing so. I got the standing part sorted out, but he still moves around every once in a while. I need to be absolutely sure he doesn't move at all (unless he's hit by a tank or something)

Eater.

Offline Kuro

  • Former Staff
  • ****
  • 2./FschJgBtl 251 Green Devils
    • VBS2 Mission Download Site
Re:Stop moving you stupid grunt!
« Reply #1 on: 07 Mar 2003, 08:09:03 »
Hallo,

please try this in the init line and make a Sentry waypoint for the unit:
this SetUnitPos "Up";

If this does not work, i knew a script trick but i am not sure if it is the best:
Make the following script (i attached it as file):

_Unit = _This Select 0
_UnitPos = getPos _Unit

#loop
_Unit setpos _UnitPos
~0.01
? Moveagain == True : exit
goto "loop"

Put in the Init.sqs-File  (make one i you do not have one)
Moveagain = False

and put in the init line of the unit
 [this] exec "Standstill.sqs"

Then make a trigger with On activation "Moveagain = True" to have the unit moving again (if necessary).
 
Greetings
Kuro

Eater1

  • Guest
Re:Stop moving you stupid grunt!
« Reply #2 on: 08 Mar 2003, 01:25:55 »
I already have the setUnitPos thing, but won't that script of yours play the moving animation while the unit stays in one place? Well, I suppose it's better than nothing. I'll give it a try later tonight, thanks for the help.

Eater.