OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: CopyrightPhilly on 18 Jul 2004, 04:25:09

Title: Stop Soldiers Moving There Heads...
Post by: CopyrightPhilly on 18 Jul 2004, 04:25:09
ok i have tryed all i know for this...

unitname disableAI "Move"
unitname disableAI "autotarget"
unitname disableAI "target"

but they still look around...

i'v made a camera scrip that zooms in to all the soldiers so i want then to keep there heads still so that you can see there face and not there head...

i also tryed

unitname dotarget "bossman"

and

unitname dotarget "bossman"

bossman being a soldier thats facing the rest of the soldiers but still they cant seem do keep there heads still, do these soldiers need medication?  ;D

cheers, Philly
Title: Re:Stop Soldiers Moving There Heads...
Post by: Artak on 18 Jul 2004, 10:01:59
Try the dowatch command, or if that doesn't work try dotarget.

Quote
doWatch position
Operand types:
    position: Array
Type of returned value:
    Nothing
Description:
    Order unit to watch given position (format Position) (silent).

Example:
    soldierOne doWatch getMarkerPos "MarkerMoveOne"


--------------------------------------------------------------------------------

doWatch target
Operand types:
    target: Object
Type of returned value:
    Nothing
Description:
    Order unit to move to watch given target (silent).

Example:
    soldierOne doWatch player
Title: Re:Stop Soldiers Moving There Heads...
Post by: THobson on 19 Jul 2004, 18:59:53
If you want to make them look in a specific direction rather than just look at something you could try toadlife's  Face direction script from the Editors Depot