juanitudev1
08-16-2011, 09:15 PM
Alright, lets just get straight into it:
1). Audio issue - I have my bot Pawns calling PlaySound in certain state's that they enter to in their AiController class. Some sounds sometimes get played over each other though. Is there any way to know if the caller of PlaySound is currently playing a sound to avoid playing another sound over it?
2). Bot Aiming - I read through UTBot to see how they aim and found a function that returns an aim error and another function that gets an AdjustedAim. The function that gets an aim for the bot returns a rotation and sets its Pawn to have that rotation. I tried using these function in my custom bots, but the bot only aims forward. The bullets are aimed correctly at my character, but the visual representation isn't there. How does UTBot get its aiming to work? UTBot in itself is a very confusing class to look at haha.
Thanks, guys!
1). Audio issue - I have my bot Pawns calling PlaySound in certain state's that they enter to in their AiController class. Some sounds sometimes get played over each other though. Is there any way to know if the caller of PlaySound is currently playing a sound to avoid playing another sound over it?
2). Bot Aiming - I read through UTBot to see how they aim and found a function that returns an aim error and another function that gets an AdjustedAim. The function that gets an aim for the bot returns a rotation and sets its Pawn to have that rotation. I tried using these function in my custom bots, but the bot only aims forward. The bullets are aimed correctly at my character, but the visual representation isn't there. How does UTBot get its aiming to work? UTBot in itself is a very confusing class to look at haha.
Thanks, guys!