Jump to content
Sign in to follow this  
marcodarco

Current animations?

Recommended Posts

Hello all!

Does anybody know how to get the animations listed in murrays guide to work in ARMA 2?

I have tried using Switchmove and Playmove in the init field of the unit but with no luck

Is that the correct way to do it?

thanks

Marcus:)

Share this post


Link to post
Share on other sites

There's quite a few new animations in ArmA2 so not all of the old ArmA1 and Queen's gambit animations work. There's a list of the animations identified so far in ArmA2 here: http://community.bistudio.com/wiki/ArmA2:_Moves

To make a player roll around on its back you need to put something like this in its init line.

this playMove "ainjppnemstpsnonwrfldnon"

or

this switchMove "ainjppnemstpsnonwrfldnon"

(there are some differences between the 2 commands but I won't go into that for now).

If the unit you want to change the animation of is an AI unit and you want to lock that unit in this animation then you can also add in the init line:

 this disableAI "anim"

so the complete init line should look like this

this playMOve "ainjppnemstpsnonwrfldnon"; this disableAI "anim"

Share this post


Link to post
Share on other sites

Wow that was quick!

I shall try that out. Thank you very much for your help

much appreciated

---------- Post added at 03:52 ---------- Previous post was at 03:48 ----------

Dosent seem to do anything, the AI just stands there and says hello lol

Share this post


Link to post
Share on other sites

What animation are you trying to make the unit do?

Share this post


Link to post
Share on other sites

I tried using the one you gave me just to test, but nothing happened apart from the AI saying hello.

I am trying to use this command 'AmovPsitMstpSlowWrflDnon_Smoking' to make the player sit and smoke (extracted from the Murray's guide)

Share this post


Link to post
Share on other sites

Try this:

this playMove "amovpsitmstpsraswrfldnon_smoking"; this disableAI "anim"

if playMove doesn't work try

this switchMove "amovpsitmstpsraswrfldnon_smoking"; this disableAI "anim"

Share this post


Link to post
Share on other sites

Will do, thanks again!

---------- Post added at 04:01 ---------- Previous post was at 03:59 ----------

Ok so the second one worked

''this switchMove "amovpsitmstpsraswrfldnon_smoking"; this disableAI "anim"'

hes not smoking, just sitting there with his weapon. thats normal I guess?

Share this post


Link to post
Share on other sites

If you want to see the full animation its best to use playMove as switchMove can truncate an animation. Also using the disableAI "anim" command can lock the animation in its final phase once the animation has played out so if its taking a few seconds for the game to load the animation might have completed by the time the game starts thats why it doesn't appear to do anything except sit there. If you can you could write a simple script that will make the unit playMove/switch once the game has loaded eg after a 5 second sleep for instance.

Share this post


Link to post
Share on other sites
If you want to see the full animation its best to use playMove as switchMove can truncate an animation. Also using the disableAI "anim" command can lock the animation in its final phase once the animation has played out so if its taking a few seconds for the game to load the animation might have completed by the time the game starts thats why it doesn't appear to do anything except sit there. If you can you could write a simple script that will make the unit playMove/switch once the game has loaded eg after a 5 second sleep for instance.

Ok cool, that sounds pretty simple.

The only thing is, I have no idea about scripting neither do I have any knowledge about it apart from some very basic commands which I have copied and pasted.

So sorry for the noob news. But I am willing to learn as I want to make great missions for this game as I can see massive potential.

The reason I wanted to execute these animations is because I wanted units to be sitting around a fire in a base, to give the mission some depth and imagination.

Do you know anywhere where I can learn how to script for this game (or learn the language)

Or a very good in depth tutorial or something

Thanks again! :o

Share this post


Link to post
Share on other sites

Here's two of the greatest resources for this type of stuff I know of

OFPEC http://www.ofpec.com/ed_depot/index.php?action=list&cat=tu

ArmAholic http://www.armaholic.com/list.php?c=arma_tutorials

Also the BIKI list and explanation of commands will become your new best friend when scripting:

ArmA: http://community.bistudio.com/wiki/Category:Scripting_Commands_ArmA ArmA2: http://forums.bistudio.com/showthread.php?t=73456

Final thoughts - if you're serious about learning scripting I must warn you it can be a fairly daunting and frustrating task at times but if you can stick with it you'll be amazed by what you can achieve with a few simple lines of code.

Good luck mate :)

Share this post


Link to post
Share on other sites

Excellent stuff!

I think I have stumbled across some of these sites before, but it seems that there is a real lack of STEP 1 do this, STEP 2 etc etc

Il have a good old browse through these sites and see what I can gather!

It is definitely a daunting task, but I feel that no task is too big with patience.

Do you know anywhere that has information about creating objectives in the mission editor?

Really big help!

Thanks Mate

Share this post


Link to post
Share on other sites

You'll find info on how to create briefings at the those sites I gave you.

There's been some changes with ARmA2 though so you may want to look here: http://forums.bistudio.com/showthread.php?t=73424

Also some applications like Chris' ArmA script editor: http://www.armaholic.com/page.php?id=1455 have wizards that allow you to make briefings and add objectives very easily - not sure how applicable it is to ArmA2 though but it should give you a better idea of how to do it.

Share this post


Link to post
Share on other sites

Also some applications like Chris' ArmA script editor: http://www.armaholic.com/page.php?id=1455 have wizards that allow you to make briefings and add objectives very easily - not sure how applicable it is to ArmA2 though but it should give you a better idea of how to do it.

That program looks interesting, seems to cut out alot of the typing needed to create briefings from scratch.

Very useful

I have to say, creating a mission where you must infiltrate a base at night, without being spotted is very hard in ARMA 2. The enemy seems to see you all the time.

Anyways, im off to hit the hay. its 04:52 here lol.

Thank you for your help man.. :yay::)

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×