OSSLNPC
From OpenSimulator
This page is under active construction
Contents |
Introduction
Since 12th August 2011, OpenSim had provided a number of functions for creating and manipulating NPCs. The general philosophy in creating these functions is to give script writers the simple tools needed to create more sophisticated behaviour, as required.
Functions
Create and Remove
osNpcCreate
osNpcCreate(string firstname, string lastname, vector position, string notecard):key
osNpcRemove
osNpcRemove(key npc):void
Get and Set
osNpcGetRot
osNpcGetRot(key npc):rotation
osNpcSetRot
osNpcSetRot(key npc, rotation rot):void
osNpcGetPos
osNpcGetPos(key npc):vector
osNpcMoveToTarget
osNpcMoveToTarget(key npc, vector position, int options):void
osNpcStopMoveToTarget
osNpcStopMoveToTarget(key npc):void
Communication
osNpcSay
osNpcSay(key npc, string message):void
Appearance
osNpcLoadAppearance
osNpcLoadAppearance(key npc, string notecardNameOrUuid):void
osNpcSaveAppearance
osNpcSaveAppearance(key npc, string notecardName):key