OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Loup-Garou on 17 Feb 2004, 13:52:46
-
I want to make civilians more "alive" with animations like folding the arms or show a direction with hand... . Can I do this in the unit's init field ??? :)
-
yes, you can have a full anim list on the comref in the
http://www.ofpec.com/editors/index.php (http://www.ofpec.com/editors/index.php)
hope that helps, oh and for the init field you can put this switchmove"whatevatheanimis", its better to use it in a script cuz you can time your anims and do a lot of em and it is easier if you know what you are doing.
-
Also Hunter has made some new anims to go with the original BIS ones. Check them out at Ofp.gamezone.cz
Just search news and put Anims in the field.
-
You can NOT use animations in init fields, only in on act fields and scripts.
:beat: *Gets Shot* :beat:
-
Search the editors depot. There is a niffty mission/tutorial in there that list all the anims in the readme. In the sample mission you can watch the different switchmove and playmove anims in action. This really helps if you want to do several actions and pick ones that blend nicely with each other.
-
You can also activeate them though triggers :)
Might be more suited to the prob..
What? You never know :P
- Ben
-
Can someone help me with these amination names, as I'm not sure what they are called, even though I checked the play/switchmove guides:
1. When a unit crouches, after standing, then pressing "Q", as they look through the sights.
2. When you are walking after crouched, looking through the sights.
Thanks.
-
Ok, here is the solution (example) : give a name to the unit you want "animated", link it (F2) with a trigger : On Activation : thenameofthe unit switchMove "FXToKneel"
In this example the unit will crouch. Other example, "FXStandSurUniv" (unit puts his hands behind head).
Note that I read that "playMove" is used too for gestures, but I didn't used it until now. Thanks to all :cheers: !
Note (2) : seems "FXCivilFoldArms" doesn't work... .
-
Note (2) : seems "FXCivilFoldArms" doesn't work... .
I think all of the 'FXsomtin' (at least majority of them) work with playMove only... ???
-
That's not very important : after all, I had what I wanted : I didn't used "FXCivilFoldArms" ; nameofunit switchMove "FXToHand" works fine :thumbsup: !
-
Hi all ;). I need some more information :
1) Some animations (FXToKnell, FXToHand...) don't stop when the unit is dead ; so, is there a simple solution to stop the gesture in this case (not (alive guy1)...) ?
2) Some others animations (like FXStandtoDip) play only a few seconds. What's the solution ? Things like "while", or "loop" ?
-
1. unit addEventHandler ["killed",{unit playMove ""; unit switchMove ""}]
May work or may not :P
2. Definetely not "while". it loops at every frame (?) and has a limit of 10000 or something loops (can't remember the correct amount)
That "FXstandToDip" is an animation sequence leading from an animation to another so it is supposed to last only for a while...
-
Switchmove gives an immediate transition to the new state: playmove is more gradual. Some animations only work with one or the other. Some animations required the loon to be in a particular state (e.g. setbehaviour safe) to start with: you cannot always go directly from one animation to another.
-
Thanks to HateR_Kint, it works ! :D
Example : unit = civilian (name = Civ1) with a "FXToHand trigger". In the unit's init field you type : this addEventHandler ["killed",{Civ1 playMove "";Civ1 switchMove ""}]
However, there's still the problem about loops... .
-
theres a animation list in my command reference, link to download is in my sig.
-
Ok ! I've found the script (thanks to dalton : http://www.ofpec.com/yabbse/index.php?board=8;action=display;threadid=15655). After some tests, I've changed it a little, so here's my solution :
1) In the editor, put in your unit's init field : [] exec "nameofthescript.sqs"
2) Put "nameofthescript.sqs" in your mission folder :
#loop
nameofyourunit switchMove "FXStandDip"
~3
goto "loop"
exit
TOPIC SOLVED !!!!!!!!! :D :D :D :D