Home   Help Search Login Register  

Author Topic: crazy running soldiers  (Read 1151 times)

0 Members and 1 Guest are viewing this topic.

j-man

  • Guest
crazy running soldiers
« on: 22 Jan 2004, 02:26:58 »
Is it possible to make soldiers run as fast as possible, ignoring all gun fire, enemies, etc... until they reach a trigger ???

Thanks in advance

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:crazy running soldiers
« Reply #1 on: 22 Jan 2004, 03:00:02 »
Try using setbahaviour careless and speed mode fast.
Plenty of reviewed ArmA missions for you to play

Offline icarus_uk

  • Members
  • *
  • LiarLiarPants Inflame True
    • [furryclan]
Re:crazy running soldiers
« Reply #2 on: 22 Jan 2004, 03:09:54 »
Thats what I first thought of, but its just going to make him sling his gun and thus walk slower.

The only way I can think of it is by using some trickery of disabling his AI and scripting him to run from point A to point B.  You might have to use a dummy for this death run as you wont be able to turn his AI back on.

You could use a combination of

soldiername disableAI "Move"

and

soldiername disableAI "target"

and see if he runs properly.
« Last Edit: 22 Jan 2004, 03:10:19 by [icarus_uk] »

GrimMonkey

  • Guest
Re:crazy running soldiers
« Reply #3 on: 22 Jan 2004, 03:27:55 »
You have a good point [icarus_uk], but wouldn't: Unit DisableAI "Move" just stop him from moving at all?

Try:
Unit DisableAI "AutoTarget" or just Target like Icarus said.

!Be warned that any unit you use DisableAI on can never be reversed!

Also put: This SetUnitPos "Up", and maybe: This AllowFle(e)ing 0, and This SetSpeedMode "Full" in their init. fields.


Beware the GrimMonkey

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:crazy running soldiers
« Reply #4 on: 22 Jan 2004, 10:59:30 »
*shakes head in self-annoyance, listens to shit slopping about inside*
Plenty of reviewed ArmA missions for you to play

Offline icarus_uk

  • Members
  • *
  • LiarLiarPants Inflame True
    • [furryclan]
Re:crazy running soldiers
« Reply #5 on: 22 Jan 2004, 16:43:48 »
As I understand it, disabling a units AI doesnt stop them from being able to do something, it just stops them from doing something on their own.
You can still tell a unit to move even though his move AI is disabled, he just wont move on his own, ie around obstacles and away from tanks etc.

Unnamed

  • Guest
Re:crazy running soldiers
« Reply #6 on: 22 Jan 2004, 16:59:10 »
Point your guy in the right direction and try running this along with GrimMonkey's suggestions. You will have to work out the timing and when you want them to stop:

Code: [Select]

Soldier1 SetUnitPos "Up"
Soldier1 AllowFleeing 0

#Loop

Soldier1 PlayMove "CombatSprintF"

~2

goto "Loop"

« Last Edit: 22 Jan 2004, 17:02:55 by Unnamed »

Offline Chris Death

  • Former Staff
  • ****
  • Finally Death's gonna get ya
    • OFPEC
Re:crazy running soldiers
« Reply #7 on: 22 Jan 2004, 17:24:58 »
Or you could also try using the combatMode.

hold fire
or
never fire

should do it (can't remember which one).

scripted that would look like:

unit setCombatMode "BLUE"
for NEVER FIRE

or

unit setCombatMode "GREEN"
for HOLD FIRE

~S~ CD
Dont argue with idiots....they will bring you down to their level and beat you there with experience.

How to use Waypoint type Scripted

Offline myke13021

  • Contributing Member
  • **
  • Myke
Re:crazy running soldiers
« Reply #8 on: 22 Jan 2004, 17:50:13 »
If i'm not completely wrong, the disableAI "move" command just disables a unit to do some on their own, as keeping formation or following the leader...you should still able to use the move command to make him run.....a script for this topic could look like this :

unit setbehaviour "AWARE"
unit setcombatmode "BLUE"
unit DisableAI "Move"
unit DisableAI "Autotarget"
unit domove getmarkerpos "markername"

this is not tested and i would be happy when the scripting guru's in here could take a look on it if this could work.

j-man

  • Guest
Re:crazy running soldiers
« Reply #9 on: 22 Jan 2004, 20:04:02 »
Well, setting their speedmode to full and their combat mode to blue sorta does the trick, but they still stop every once in awhile even though their not targeting anyone :( . Anyway, thanks for all the help, I could probably get it working now.