OnNPCChangeDimension
From Onset Developer Wiki
Description
Event called when an NPC instance changes dimensions from SetNPCDimension.
Syntax
OnNPCChangeDimension(npc, old_dimension, new_dimension)
Parameters
- npc
The npc which changed dimension. - old_dimension
The old dimension. - new_dimension
The new dimension.
Example
AddEvent("OnNPCChangeDimension", function(npc, old_dimension, new_dimension)
print("Object "..npc.." changed dimensions")
end)