Jump to content
Sign in to follow this  
epicgoldenwarrior

Warrior's Small Arms Animation Script

Recommended Posts

Hello Arma Community!

Here is my small arms animation script, [V:1.0]. This is my first script, so...yea.

Instead of spending time explaining what it does, its really simple - it adds animations to when you remove a scope or flashlight/laser.

Here's a video of it in action:

Instructions to use:

In mission folder [Documents > Arma 3 > Missions > Mission Name]

Create init.sqf via notepad, in it place:

if (!(isDedicated)) then {
   waitUntil {!(isNull player)};
   player addEventHandler ["inventoryOpened","_nul=execVM 'inv.sqf'"];
};  

then, create inv.sqf, and in it place:

// Small Arms Animation Script by EpicGoldenWarrior
waitUntil {!(isNull (findDisplay 602))};
((findDisplay 602) displayCtrl 621) ctrlAddEventHandler ["mouseButtonDown", "player switchMove 'DismountOptic';"];
waitUntil {!(isNull (findDisplay 602))};
((findDisplay 602) displayCtrl 622) ctrlAddEventHandler ["mouseButtonDown", "player switchMove 'DismountSide';"];

Thats all there is too it!

Current Version Notes:

-Animations work in vehicles, but then you are stuck in anim and it doesnt look right. Will try to fix later if someone can help me :S

-There doesnt have to be a scope in the slot to actually get the anim as long as you click it. It shouldnt be an issue, because why would you do that? :P

Hope you enjoy!

Edited by EpicGoldenWarrior

Share this post


Link to post
Share on other sites

Nice work, it is amazing how the little things such as this really improve immersion.

Share this post


Link to post
Share on other sites

I wonder why BIS hasn't added this. Bet they'd aiming to make this functional for AI, too :D

Anyway, nice work! Little details make great games.

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  

×