I've got Four Booleans:
Currently, I have the AI bot, on Possession of the Pawn, Rattling off a function (in this case, a function that teleports the pawn to a PathNode).
How can I go through the booleans, and randomly set one of the four to true when it Posesses the pawn?
Code:
bPerkAmmo; bPerkRegen; bPerkVelocity; bPerkBounce;
Currently, I have the AI bot, on Possession of the Pawn, Rattling off a function (in this case, a function that teleports the pawn to a PathNode).
Code:
function PossessedBy(Controller C, bool bVehicleTransition) { Super.PossessedBy(C, bVehicleTransition); //Check Wether the Pawn is controlled by an AI if (C !=None) { `log ("Controller is A" @ C); if (C.IsA('UTBot') ) { // Toggle a random perk boolean Teleport(Self); } } else `log("No Controller?"); }
Comment