Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: UberKreb on 06 Apr 2003, 01:29:49
Title: Stop command
Post by: UberKreb on 06 Apr 2003, 01:29:49
Are there any stop commands that will cause a unit to halt, but can be used again to make a unit move again? I've tried using the dostop, commandstop, and stop commands, but I can't find a way to get the units moving again. Using unit stop false doesn't seem to do anything. Any help would be appreciated.
Title: Re:Stop command
Post by: Burn on 06 Apr 2003, 01:47:58
:-\I'm a little unsure... but I think there should be a doMove command... try that out :P
[shadow=blue,left,300]~:BIZON:~[/shadow]
Title: Re:Stop command
Post by: Sui on 06 Apr 2003, 01:59:56
Well, to get a unit moving again after using dostop, you can use:
unit dofollow (leader unit)
Also, using:
unit stop true
and
unit stop false
Used to work (I think it would have been about v1.40 when I last tried it... the comref says it's obselete, but ignore that ;))
Title: Re:Stop command
Post by: UberKreb on 06 Apr 2003, 04:06:07
Dang, thanks for fast reply. I tried using the domove command, but it doesn't do anything. I tried using the unit stop false before, but it didn't work (it's sort of odd how it has a true and false thing, but only true works). I tried using the unit dofollow leader unit but it wouldn't work because I have the whole group stopped. The scenario I have is as follows: I have a group of soldiers sitting around a fire. I just want to have it so that they stay where I put them and not move around, causing them to get up. I could probably just have the soldiers in their own one man groups and have them join up with their leader when they need to, but that would require quite a few groups, leaving me with less groups to place on my map. Any more help would be greatly appreciated. BTW, I have v1.90.
cough cough It seems as though I solved my problem. It just so happens that the unit stop false works just fine and my cough cough group of triggers was at fault. Oh well.
Title: Re:Stop command
Post by: Flapje on 06 Apr 2003, 10:49:57
I had the nearly the same question 2 days ago, with the domove command. Macguba told me to do: unit domove getpos something. the something can be a gl, a marker, a dead body, anything.