Thanks Cujo Sound, also I was wondering; Do you know how to get 'GetRTPC' working? I just posted a reddit thing about it in GameAudio, if you have a moment to look it over and maybe reply here I'd really appreciate the help. Thankyou!
@CujoSound5 жыл бұрын
Wondering how to get it working, as I haven't used it much actually - I guess you want to know the value of an RTPC on a given object? The very briefly I have looked at it I found that it was easiest to pass the code directly on the playing object rather than from another object trying to catch the object ID first and then track the RTPC. In what context do you need to know the RTPC?
@_Fabrice5 жыл бұрын
@@CujoSound Yes that right, but I wanted the RTPC value to control a particle system based on the volume input of an audio track. Also, a few people on reddit kindly also posted some stuff that solved my problem! In your code, you have to have; -------- (float)outrtpc and (int)reftype both in update. ----- Mine where at the top, which didn't work for me. thanks, Fab
@CujoSound5 жыл бұрын
@@_Fabrice but, you just be feeding the rtpc with a value from elsewhere, isn't it easier just to intercept that value, instead of measuring the rtpc?
@_Fabrice5 жыл бұрын
@@CujoSound Hey, I'm not too sure what you mean. How would that be done? Thanks
@CujoSound5 жыл бұрын
@@_Fabrice let's say it's the speed of the character, at some point you will have to SetRTPC = SpeedOfChatacter. Or wind, or whatever. Instead of GetRTPC on the given object and trying to find it again, you could, where you SetRTPC store the value in a float and then use that. Like SetRTPC = SpeedOfCharacter and the Float StoredSpeedRTPC = SpeedOfCharacter. In that way you won't have to grab the RTPC, you can just grab the StoresSpeedRTPC as its identical to the RTPC value. Ok long reply, did that make any sense?