UI_get_usecode_fun
![[Exult]](images/exultsm.png)
int UI_get_usecode_fun(object obj)
int obj->get_usecode_fun()
Gets the usecode function number of an object. This takes into consideration a NPC's assigned function (if any) and the correct shape <> function mapping for shapes > 1024.
Parameters
| Parameter / value | Description |
|---|---|
obj |
The object whose usecode function we desire. |
Return
The usecode function number that is assigned to the object.