Radioman 6 Posted April 16, 2013 Hello, I'm having issues with making player characters keep their hands on their heads, when the player is armed. playmove or switchmove don't work, as playmove doesn't play anything, nor does playmovenow. The animations I'm trying are: "AmovPercMstpSsurWnonDnon", "AmovPercMstpSsurWnonDnon_AmovPercMstpSnonWnonDnon" switchmove just makes the hands go to the sides, twitch up, then back down, then the player takes his rifle out again. There's also occasions where, with these animations, that they'll cause the player to fly across the map and die, upon their calling.... So, tl;dr: How does one make an armed player put their hands up, and keep them there? Thank you. Share this post Link to post Share on other sites
killzone_kid 1333 Posted April 16, 2013 same here, sliding across the map with surrender animation. If you want animation to stop and wait I guess you need to mess with config classes. I don't know much about it though. Share this post Link to post Share on other sites
jasin 1 Posted April 16, 2013 Also having the issue with hands up animation causing the unit to slide across the map, and die. It worked fine with switchmove in A2, so a bug? Share this post Link to post Share on other sites
f2k sel 164 Posted April 16, 2013 If you remove the weapons they keep hands in the air, at least in OA removeAllWeapons unit; Share this post Link to post Share on other sites
Radioman 6 Posted April 16, 2013 F2k Sel said: If you remove the weapons they keep hands in the air, at least in OAremoveAllWeapons unit; I'm aware of this, and it's very undesireable. Though, I suppose for now, I'll have to do some kind of funky work around, where I remove all weapons (Primary, secondary, pistol), play animation, wait till it's been interupted / stopped. Give player weapons back.... blah. Share this post Link to post Share on other sites
f2k sel 164 Posted April 17, 2013 The you will need to freeze the animation at some point man action ["surrender",man] ; sleep 1; man disableAI "anim"; Share this post Link to post Share on other sites
Radioman 6 Posted April 17, 2013 F2k Sel said: The you will need to freeze the animation at some pointman action ["surrender",man] ; sleep 1; man disableAI "anim"; On players, the only way to essentially pause an animation, would be to _pobj enablesimulation false; But that causes other issues too... Share this post Link to post Share on other sites
banky 4 Posted April 17, 2013 Easiest way I've found is to just give them a waypoint to where you want them to be, then use in the waypoint's OnAct: this disableAI "ANIM"; removeAllWeapons this; this switchMove "AmovPercMstpSsurWnonDnon"; (or whatever move you want them to do) If you want to get specific, you can use the above and assign them a position with: this setPos (getPos chair14); Or whatever object you want them to end up on. or a specific building postion: playername setPos (((getpos this) nearestObject 44095) buildingPos 14); That example is the top of the arifield control tower I believe. Or use "this" instead of "playername" if used in the players init (without quotations). To end the animation and get them into combat, I usually make a trigger with a knowsabout condition (but you can trigger it however you like) and in the OnAct of the trigger you need to use: playername enableAI "ANIM"; playername switchMove ""; Share this post Link to post Share on other sites
f2k sel 164 Posted April 17, 2013 (edited) Yea I forgot it was for the player and not AI. while {alive player} do { player action ["surrender",player]; sleep 0.001; waituntil {animationState player !="amovpercmstpsraswrfldnon_amovpercmstpsnonwnondnon"}; }; That will work in SP, you will need a way to exit the loop Edited April 17, 2013 by F2k Sel Share this post Link to post Share on other sites