Home   Help Search Login Register  

Author Topic: setFaceAnimation  (Read 717 times)

0 Members and 2 Guests are viewing this topic.

Offline The_Mark

  • Members
  • *
setFaceAnimation
« on: 21 Oct 2003, 17:50:29 »
How can I make a soldier to blink his eyes/keep them shut, as the Setfaceanimation doesn't seem to work?

For example:
Code: [Select]
soldier setFaceAnimation 1No effect.
Code: [Select]
soldier setFaceAnimation 0No effect.
Code: [Select]
soldier setFaceAnimation 0.5No effect.

Is the command obsolete/just simply doesn't work, or is there something wrong with the code?
Silent enim leges inter arma.

Knut Erik

  • Guest
Re:setFaceAnimation
« Reply #1 on: 21 Oct 2003, 18:26:38 »
Hey, The_Mark :wave:
The Setfaceanimation command has been replaced with the setMimic command.

Syntax
Unit setMimic "Mimic"

The "mimics" you can use are:
Default, Normal, Smile, Hurt, Ironic, Sad, Cynic, Surprised, Agresive, Angry.

Hopes this helpes a bit  8)
« Last Edit: 21 Oct 2003, 19:40:58 by Knut Erik »

Offline The_Mark

  • Members
  • *
Re:setFaceAnimation
« Reply #2 on: 21 Oct 2003, 20:57:14 »
Thanks, but that's not what I need. I need the soldier to close his eyes, which, as far as I know, cannot be done with the setMimic command.  :(
Silent enim leges inter arma.

Knut Erik

  • Guest
Re:setFaceAnimation
« Reply #3 on: 21 Oct 2003, 21:05:21 »
Hello again, The_Mark :wave:

Now I'm getting curius...  :-X
Why don't the command work  :-\

We better wait untill LCD, macGuba or some other expert arrives...
To bad I can't help you more than I can :( but good luck further on ;)

Cheers :cheers:
« Last Edit: 21 Oct 2003, 21:06:39 by Knut Erik »

Offline The_Mark

  • Members
  • *
Re:setFaceAnimation
« Reply #4 on: 21 Oct 2003, 23:22:48 »
Using the animate command could do it, if I only knew the animation name for the eye blinking..
Silent enim leges inter arma.

Komuna

  • Guest
Re:setFaceAnimation
« Reply #5 on: 24 Oct 2003, 17:45:01 »
Hmm... Theoricaly, setfaceanimation should work:

----------------------------------------
person setFaceAnimation blink

Operand types:
    person: Object
    blink: Number
Type of returned value:
    Nothing
Description:
    Set facial animation phase (eye blinking). blink in range 0 to 1

Example:
    setFaceAnimation 0.5
-----------------------------------


But we know how OFP is...

Now, about animate: No Mark, it wouldn't work. animate is a limited model animation method, whose animations can only be set at the config.cpp according to the model's memoryLOD and selections definition (which requires Addon making knoledge :-\).

I hope you find the answer. ;)