Exported TryMove.

This commit is contained in:
Major Cooke 2016-11-16 11:47:45 -06:00 committed by Christoph Oelckers
parent 76a74e0364
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));
}
//==========================================================================

View file

@ -97,6 +97,7 @@ class Actor : Thinker native
native bool CheckSight(Actor target, int flags = 0);
native bool HitFriend();
native bool MonsterMove();
native bool TryMove(vector2 newpos, int dropoff);
native void NewChaseDir();
native bool CheckMissileRange();
native bool SetState(state st, bool nofunction = false);