Hey guys,
I thought I'd try to write my first mutator today and start simple but I am lost. It compiles but does nothing in game. From searching the forums it looks like I'm meant to to use ModifyVelocity in some form but I have no idea how.
In the end I'm hoping to make it a sprint function but right now I'm just trying to change the player speed overall for the whole match. Anyway, here is the bit of code I tried:
Code:
class SprintMutator extends Mutator;
function PostBeginPlay()
{
local KFHumanPawn Player;
foreach DynamicActors(class 'KFHumanPawn', Player)
{
Player.GroundSpeed = 2000.0; //high to make sure I just wasn't noticing the increase
}
}
defaultproperties
{
GroupName="KFSprintMutator"
FriendlyName="Allow Sprint"
Description="More Speed"
}
Thanks for any help you can give me