Export P_GetOffsetPosition and ADynamicLight::SetOffset to ZScript
This commit is contained in:
parent
66a2cdb6e9
commit
789941f24d
4 changed files with 33 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
//==========================================================================
|
||||
//
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue