Jump to content
Sign in to follow this  
.Marti

animationphase on dedi

Recommended Posts

Hey there, begginer editor here. I have a doubt regarding animationphase. I'm trying to adapt a script i saw on DayZmedic YT channel for dedicated enviroment. It's the one that allows you to tow a D-30 big gun from RHS. 
 

The gun is foldable, and at some point the scripts runs a check for the animation phase of the gun. (== 0 when deployed, == 2.3 when folded). This will work in SP, however in dedicated the values are 0 when deployed, and 2.29921 when undeployed. (This, apart from the scripts, it brokes the fold functionality of the asset itself, because it does the same check). 

 

This is something usual in dedicated enviroments? It's just the model i'm using?

 

I guess i could modify the check to be something like:

 

Quote

if (_this animationPhase 'leftT' > 2.2) then {

 

Instead of the original one:

 

Quote

if (_this animationPhase 'leftT' == 2.3) then {

 

What i'm using to check the animationphase (via function on init.sqf):

 

Quote

animcheck = {

_check = arti1 animationPhase "leftT";
hint format ["Anim phase is %1", _check];

};

 

Any suggestions? Known errors? Ideas?

 

Cheers. 

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  

×