Home   Help Search Login Register  

Author Topic: why won't they stop?  (Read 813 times)

0 Members and 1 Guest are viewing this topic.

Offline bedges

  • Administrator
  • *****
    • OFPEC The Editing Center
why won't they stop?
« on: 19 Oct 2005, 21:44:55 »
i am making a script which creates units using the (surprise surprise) createunit command. in the init string part i tried putting 'dostop this'.

loon won't stop.

i tried putting a trigger together in-game, same createunit command, giving loon a name, then after he was created, dostopping him by name. no problem. loon stops.

i tried recreating this in a script by assigning a random name to the loon, then after he was created, dostopping him by that name.

loon still won't stop.

what gives?

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:why won't they stop?
« Reply #1 on: 19 Oct 2005, 21:55:11 »
It could be another command overriding it ... say a return to formation from a group leader.   Or maybe if he has a waypoint.

Or it could be that it takes loons a second or two to wake up after createunit, and the command is being issued when he is still asleep.  Try issuing it a few seconds later.
Plenty of reviewed ArmA missions for you to play

Offline THobson

  • OFPEC Patron
  • Former Staff
  • ****
Re:why won't they stop?
« Reply #2 on: 19 Oct 2005, 22:06:06 »
In addition: when you create a unit you have to have it assigned to a group - it may be trying to get to its group leader.  try: [this] join grpNull

Offline bdfy85

  • Contributing Member
  • **
Re:why won't they stop?
« Reply #3 on: 20 Oct 2005, 10:43:37 »
hint: create a group in the editor and place  'dostop this' in the  init field of each  unit. What will you see ? :)
Posible solutions :
-use disableAi command to stop anf enableAI function to let soldiers move.
-use dostop loop
-unassign all soldiers from its groups (not recommend )

Liberation Mod scripts&balance

Offline Tyger

  • Former Staff
  • ****
  • I was at OFPEC when it still had dirt floors...
    • OFPEC
Re:why won't they stop?
« Reply #4 on: 20 Oct 2005, 11:24:54 »
Quote
int: create a group in the editor and place  'dostop this' in the  init field of each  unit. What will you see ?
Posible solutions :
-use disableAi command to stop anf enableAI function to let soldiers move.

There is no enableAI command...
« Last Edit: 20 Oct 2005, 11:25:06 by Tyger »
"People sleep soundly at night only because rough men stand ready to do violence on their behalf." - George Orwell

MSG Mike Everret - We Will Never Forget - '75-'08

Offline bdfy85

  • Contributing Member
  • **
Re:why won't they stop?
« Reply #5 on: 20 Oct 2005, 16:58:29 »
there's _function_ ;) not command
Liberation Mod scripts&balance

Offline bedges

  • Administrator
  • *****
    • OFPEC The Editing Center
Re:why won't they stop?
« Reply #6 on: 20 Oct 2005, 21:42:23 »
thanks all. i've worked around the problem, and have fixed it simply - always the best way ;)