OSSLNPC
From OpenSimulator
(Difference between revisions)
Line 1: | Line 1: | ||
'''This page is under active construction''' | '''This page is under active construction''' | ||
+ | =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= | =Functions= | ||
− | ==osNpcCreate== | + | ==Create and Remove== |
+ | ===osNpcCreate=== | ||
osNpcCreate(string firstname, string lastname, vector position, string notecard):key | osNpcCreate(string firstname, string lastname, vector position, string notecard):key | ||
− | ==osNpcRemove== | + | ===osNpcRemove=== |
osNpcRemove(key npc):void | osNpcRemove(key npc):void | ||
− | ==osNpcGetRot== | + | ==Get and Set== |
+ | ===osNpcGetRot=== | ||
osNpcGetRot(key npc):rotation | osNpcGetRot(key npc):rotation | ||
− | ==osNpcSetRot== | + | ===osNpcSetRot=== |
osNpcSetRot(key npc, rotation rot):void | osNpcSetRot(key npc, rotation rot):void | ||
− | ==osNpcGetPos== | + | ===osNpcGetPos=== |
osNpcGetPos(key npc):vector | osNpcGetPos(key npc):vector | ||
− | ==osNpcMoveToTarget== | + | ===osNpcMoveToTarget=== |
osNpcMoveToTarget(key npc, vector position, int options):void | osNpcMoveToTarget(key npc, vector position, int options):void | ||
− | ==osNpcStopMoveToTarget== | + | ===osNpcStopMoveToTarget=== |
osNpcStopMoveToTarget(key npc):void | osNpcStopMoveToTarget(key npc):void | ||
− | ==osNpcSay== | + | ==Communication== |
+ | |||
+ | ===osNpcSay=== | ||
osNpcSay(key npc, string message):void | osNpcSay(key npc, string message):void | ||
− | ==osNpcLoadAppearance== | + | ==Appearance== |
+ | |||
+ | ===osNpcLoadAppearance=== | ||
osNpcLoadAppearance(key npc, string notecardNameOrUuid):void | osNpcLoadAppearance(key npc, string notecardNameOrUuid):void | ||
− | ==osNpcSaveAppearance== | + | ===osNpcSaveAppearance=== |
osNpcSaveAppearance(key npc, string notecardName):key | osNpcSaveAppearance(key npc, string notecardName):key | ||
+ | |||
+ | =Example= |
Revision as of 16:41, 11 August 2011
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