TobiaszPL Posted April 18, 2019 Share Posted April 18, 2019 (edited) if i run -> int instanceID = mySFX.play(self) is there any way to get 1 - Time left to finish playing this sound 2 - actual Volume * SetInstanceVolume 3 - Object... ugh... this mySFX object ID xD#BadEnglish :3 hyhy //Edit:ofc. i know that i set this mySFX object as sound sourcebut i want to generate it randomly ( one of many items in array will be source ){ also they can be added by spell xD } my english is potato so i can't explain perfectly what i want xDbut plz don't waste time for anything else than functions for things i ask :D //Edit2:im asking for something like this:int ABC = instanceID.GetTimeLeft()int ABC = instanceID.GetVolume()int ABC = instanceID.GetSource() but those functions are not working xDDD lel Edited April 18, 2019 by TobiaszPL Link to comment Share on other sites More sharing options...
NexusComa Posted April 18, 2019 Share Posted April 18, 2019 If you know where you are and you know how long the music is then you know how much time you have left ... Link to comment Share on other sites More sharing options...
TobiaszPL Posted April 19, 2019 Author Share Posted April 19, 2019 Ok other question,if i use PlayAndWait and then i use StopInstance it will work? i don't have any sounds on this PC so i can't test T_T... int InstanceID State AEvent OnActivate( ObRef Ref )GotoState( "B" )InstanceID = PlayAndWait()EndEvendEndState State BEvent OnActivate ObRef Ref )StopInstance( InstanceID )GoToState( "A" )EndEventEndState how about this? xDwill State B stop prev started Event and stop playing sound? Link to comment Share on other sites More sharing options...
Recommended Posts