This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
features:sinfar_supporter_housing:npcbehaviour [2019/05/29 02:21] LockOn created |
features:sinfar_supporter_housing:npcbehaviour [2019/05/31 05:02] LockOn minor description updates |
||
---|---|---|---|
Line 18: | Line 18: | ||
void main() | void main() | ||
{ | { | ||
- | ActionSit(GetNearestObject()) | + | ActionSit(GetNearestObject(OBJECT_TYPE_ALL, OBJECT_SELF,1)); |
} | } | ||
</code> | </code> | ||
- | Note, testing still required for all scripts. | + | Note, testing still required for all scripts, but the above works fine. |
Want an NPC to spot a player and walk over and start their conversation script with them? | Want an NPC to spot a player and walk over and start their conversation script with them? |