Home
Intel Depot
Editors Depot
Missions Depot
Addons Depot
Forum
Home
Help
Search
Login
Register
OFPEC Forum
»
Editors Depot - Mission Editing and Scripting
»
OFP - Editing/Scripting General
(Moderators:
h-
,
savedbygrace
,
Gruntage
) »
Stop moving you stupid grunt!
« previous
next »
Send this topic
Print
Pages: [
1
]
Go Down
Author
Topic: Stop moving you stupid grunt! (Read 409 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.
Logged
Kuro
Former Staff
2./FschJgBtl 251 Green Devils
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
Logged
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.
Logged
Send this topic
Print
Pages: [
1
]
Go Up
« previous
next »
OFPEC Forum
»
Editors Depot - Mission Editing and Scripting
»
OFP - Editing/Scripting General
(Moderators:
h-
,
savedbygrace
,
Gruntage
) »
Stop moving you stupid grunt!
Top of page