OpenSim
|
Public Member Functions | |
UUID | CreateNPC (string firstname, string lastname, Vector3 position, UUID owner, bool senseAsAgent, Scene scene, AvatarAppearance appearance) |
Create an NPC More... | |
UUID | CreateNPC (string firstname, string lastname, Vector3 position, UUID agentID, UUID owner, bool senseAsAgent, Scene scene, AvatarAppearance appearance) |
Create an NPC with a user-supplied agentID More... | |
bool | IsNPC (UUID agentID, Scene scene) |
Check if the agent is an NPC. More... | |
INPC | GetNPC (UUID agentID, Scene scene) |
Get the NPC. More... | |
bool | CheckPermissions (UUID npcID, UUID callerID) |
Check if the caller has permission to manipulate the given NPC. More... | |
bool | SetNPCAppearance (UUID agentID, AvatarAppearance appearance, Scene scene) |
Set the appearance for an NPC. More... | |
bool | MoveToTarget (UUID agentID, Scene scene, Vector3 pos, bool noFly, bool landAtTarget, bool running) |
Move an NPC to a target over time. More... | |
bool | StopMoveToTarget (UUID agentID, Scene scene) |
Stop the NPC's current movement. More... | |
bool | Say (UUID agentID, Scene scene, string text) |
Get the NPC to say something. More... | |
bool | Say (UUID agentID, Scene scene, string text, int channel) |
Get the NPC to say something. More... | |
bool | Shout (UUID agentID, Scene scene, string text, int channel) |
Get the NPC to shout something. More... | |
bool | Whisper (UUID agentID, Scene scene, string text, int channel) |
Get the NPC to whisper something. More... | |
bool | Sit (UUID agentID, UUID partID, Scene scene) |
Sit the NPC. More... | |
bool | Stand (UUID agentID, Scene scene) |
Stand a sitting NPC. More... | |
bool | Touch (UUID agentID, UUID partID) |
Get the NPC to touch an object. More... | |
bool | DeleteNPC (UUID agentID, Scene scene) |
Delete an NPC. More... | |
UUID | GetOwner (UUID agentID) |
Get the owner of a NPC More... | |
Properties | |
NPCOptionsFlags | NPCOptionFlags [get] |
Definition at line 62 of file INPCModule.cs.
Check if the caller has permission to manipulate the given NPC.
A caller has permission if
av | |
callerID |
npcID | |
callerID |
Implemented in OpenSim.Region.OptionalModules.World.NPC.NPCModule.
UUID OpenSim.Region.Framework.Interfaces.INPCModule.CreateNPC | ( | string | firstname, |
string | lastname, | ||
Vector3 | position, | ||
UUID | owner, | ||
bool | senseAsAgent, | ||
Scene | scene, | ||
AvatarAppearance | appearance | ||
) |
Create an NPC
firstname | |
lastname | |
position | |
senseAsAgent | Make the NPC show up as an agent on LSL sensors. The default is that they show up as the NPC type instead, but this is currently an OpenSim-only extension. |
scene | |
appearance | The avatar appearance to use for the new NPC. |
Implemented in OpenSim.Region.OptionalModules.World.NPC.NPCModule.
UUID OpenSim.Region.Framework.Interfaces.INPCModule.CreateNPC | ( | string | firstname, |
string | lastname, | ||
Vector3 | position, | ||
UUID | agentID, | ||
UUID | owner, | ||
bool | senseAsAgent, | ||
Scene | scene, | ||
AvatarAppearance | appearance | ||
) |
Create an NPC with a user-supplied agentID
firstname | |
lastname | |
position | |
agentID |
The desired agent ID
owner | |
senseAsAgent | Make the NPC show up as an agent on LSL sensors. The default is that they show up as the NPC type instead, but this is currently an OpenSim-only extension. |
scene | |
appearance | The avatar appearance to use for the new NPC. |
Implemented in OpenSim.Region.OptionalModules.World.NPC.NPCModule.
Delete an NPC.
agentID | The UUID of the NPC |
scene |
Implemented in OpenSim.Region.OptionalModules.World.NPC.NPCModule.
Get the NPC.
This is not currently complete - manipulation of NPCs still occurs through the region interface.
agentID | |
scene |
Implemented in OpenSim.Region.OptionalModules.World.NPC.NPCModule.
Get the owner of a NPC
agentID | The UUID of the NPC |
Implemented in OpenSim.Region.OptionalModules.World.NPC.NPCModule.
Check if the agent is an NPC.
agentID | |
scene |
Implemented in OpenSim.Region.OptionalModules.World.NPC.NPCModule.
bool OpenSim.Region.Framework.Interfaces.INPCModule.MoveToTarget | ( | UUID | agentID, |
Scene | scene, | ||
Vector3 | pos, | ||
bool | noFly, | ||
bool | landAtTarget, | ||
bool | running | ||
) |
Move an NPC to a target over time.
agentID | The UUID of the NPC |
scene | |
pos | |
noFly | If true, then the avatar will attempt to walk to the location even if it's up in the air. This is to allow walking on prims. |
landAtTarget | If true and the avatar is flying when it reaches the target, land. |
name="running"> If true, NPC moves with running speed.
Implemented in OpenSim.Region.OptionalModules.World.NPC.NPCModule.
Get the NPC to say something.
agentID | The UUID of the NPC |
scene | |
text |
Implemented in OpenSim.Region.OptionalModules.World.NPC.NPCModule.
bool OpenSim.Region.Framework.Interfaces.INPCModule.Say | ( | UUID | agentID, |
Scene | scene, | ||
string | text, | ||
int | channel | ||
) |
Get the NPC to say something.
agentID | The UUID of the NPC |
scene | |
text | |
channel |
Implemented in OpenSim.Region.OptionalModules.World.NPC.NPCModule.
bool OpenSim.Region.Framework.Interfaces.INPCModule.SetNPCAppearance | ( | UUID | agentID, |
AvatarAppearance | appearance, | ||
Scene | scene | ||
) |
Set the appearance for an NPC.
agentID | |
appearance | |
scene |
Implemented in OpenSim.Region.OptionalModules.World.NPC.NPCModule.
bool OpenSim.Region.Framework.Interfaces.INPCModule.Shout | ( | UUID | agentID, |
Scene | scene, | ||
string | text, | ||
int | channel | ||
) |
Get the NPC to shout something.
agentID | The UUID of the NPC |
scene | |
text | |
channel |
Implemented in OpenSim.Region.OptionalModules.World.NPC.NPCModule.
Sit the NPC.
agentID | |
partID | |
scene |
Implemented in OpenSim.Region.OptionalModules.World.NPC.NPCModule.
Stand a sitting NPC.
agentID | |
scene |
Implemented in OpenSim.Region.OptionalModules.World.NPC.NPCModule.
Stop the NPC's current movement.
agentID | The UUID of the NPC |
scene |
Implemented in OpenSim.Region.OptionalModules.World.NPC.NPCModule.
Get the NPC to touch an object.
agentID | |
partID |
Implemented in OpenSim.Region.OptionalModules.World.NPC.NPCModule.
bool OpenSim.Region.Framework.Interfaces.INPCModule.Whisper | ( | UUID | agentID, |
Scene | scene, | ||
string | text, | ||
int | channel | ||
) |
Get the NPC to whisper something.
agentID | The UUID of the NPC |
scene | |
text | |
channel |
Implemented in OpenSim.Region.OptionalModules.World.NPC.NPCModule.
|
get |
Definition at line 301 of file INPCModule.cs.