In the 'event Touch (Actor Other....)' used for whenever two actors touch each other, how can I have it so only one class will 'trigger' the Touch event?
As to prevent AI from touching triggers meant for only player pawns.
Thanks![]()
In the 'event Touch (Actor Other....)' used for whenever two actors touch each other, how can I have it so only one class will 'trigger' the Touch event?
As to prevent AI from touching triggers meant for only player pawns.
Thanks![]()
My website: http://www.dotvawxgames.com
How I made my game: HERE
What I am doing now: www.warmgungame.com
I don't know if you can prevent an AI-controlled pawn from having its Touch event called, but you can prevent them from doing anything when the event is called.
Code:event Touch (Actor Other, PrimitiveComponent OtherComp, Object.Vector HitLocation, Object.Vector HitNormal) { local AIController AIControlled; AIControlled = AIController(Controller); if (AIControlled == None) { // This pawn is not controlled by AI } }
Bookmarks