Jump to content
Sign in to follow this  
qevhytpl

count music time and return a time value

Recommended Posts

hi everyone:I want game count music playing time and return a value by script .

like this:

_pla = _this select 0; 
_sht = _this select 1;
_tw  = _this select 2;
_time = sizeOf "_sht";//of crouse this isn't useful. I just place a case.
_pla playmove"AmovPercMstpSrasWrflDnon_SaluteIn";
sleep 2;
_pla say format ["%1", _sht];
_pla sidechat format ["%1:%2",name _pla,_tw];
sleep _time;// this is my problem 
_pla switchmove "ActsPercMstpSnonWrflDnon_interrogate02_forgoten";

//becase I will deal with thousands of tracks , so I want a more effective script .

do you understand me?

Edited by [FRL]Myke

Share this post


Link to post
Share on other sites

Belongs to the editing section...fasten your seat belts, thread is moving.

:EDITH:

Also added code tags to your script snippet.

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  

×