Added CheckMove() function to ZScript Actor class

https://forum.zdoom.org/viewtopic.php?t=58964
This commit is contained in:
alexey.lysiuk 2018-01-02 13:04:28 +02:00
commit c4648a2b1c
3 changed files with 18 additions and 0 deletions

View file

@ -2879,6 +2879,14 @@ bool P_CheckMove(AActor *thing, const DVector2 &pos, int flags)
return true;
}
DEFINE_ACTION_FUNCTION(AActor, CheckMove)
{
PARAM_SELF_PROLOGUE(AActor);
PARAM_FLOAT(x);
PARAM_FLOAT(y);
PARAM_INT_DEF(flags);
ACTION_RETURN_BOOL(P_CheckMove(self, DVector2(x, y), flags));
}
//==========================================================================