I can't seem to get this working, I'm getting an error once opening my c# project file (.exe) and it says "object reference not set to an instance of an object". Here's the line and the one below it.
// Update the actual position
Actor.Position = new Vector3(
Actor.PositionToSet.X,
Actor.PositionToSet.Y,
(Math.Round(
GetUserStepHeight(
Actor.PositionToSet),
1)));
Actor.PositionToSet = null;