Hello,
I have a Pawn class that overrides the Tick() function and constrains the player every tick at the X-axis. Like this-->
This works, however it disrupts the Pawn's ability to properly trigger volumes. For instance, when the player is running towards a trigger, it works, but if the player is walking slowly towards the trigger volume does not work. When I remove the "SetLocation(tmpLocation;" line of code, the Player triggers the volumes correctly. Anyone have any suggestions or hints?Code:simulated function Tick(float DeltaTime) { local vector tmpLocation; tmpLocation = Location; tmpLocation.X = constraintLocation; SetLocation(tmpLocation); super.Tick(DeltaTime); }



Reply With Quote

Bookmarks