Export P_GetOffsetPosition and ADynamicLight::SetOffset to ZScript

This commit is contained in:
Cacodemon345 2018-12-20 16:01:24 +06:00 committed by Christoph Oelckers
commit 789941f24d
4 changed files with 33 additions and 1 deletions

View file

@ -426,6 +426,20 @@ void ADynamicLight::SetOffset(const DVector3 &pos)
UpdateLocation();
}
static void SetOffset(ADynamicLight *self, const DVector3 &pos)
{
self->SetOffset(pos);
}
DEFINE_ACTION_FUNCTION_NATIVE(ADynamicLight, SetOffset, SetOffset)
{
PARAM_SELF_PROLOGUE(ADynamicLight)
PARAM_FLOAT(x)
PARAM_FLOAT(y)
PARAM_FLOAT(z)
self->SetOffset(DVector3(x, y, z));
return 0;
}
//==========================================================================
//