Exported TryMove.

This commit is contained in:
Major Cooke 2016-11-16 11:47:45 -06:00 committed by Christoph Oelckers
commit 60d93008ba
2 changed files with 9 additions and 0 deletions

View file

@ -2498,6 +2498,14 @@ bool P_TryMove(AActor *thing, const DVector2 &pos,
return P_TryMove(thing, pos, dropoff, onfloor, tm);
}
DEFINE_ACTION_FUNCTION(AActor, TryMove)
{
PARAM_SELF_PROLOGUE(AActor);
PARAM_FLOAT_DEF(x);
PARAM_FLOAT_DEF(y);
PARAM_INT(dropoff);
ACTION_RETURN_BOOL(P_TryMove(self, DVector2(x, y), dropoff));
}
//==========================================================================