mirror of
https://github.com/opensim/opensim.git
synced 2026-08-01 06:06:06 +08:00
Overload INPCModule.CreateNPC() to allow agentID to be specified. Note: this is intended for use in region modules and is not exposed to scripts.
This commit is contained in:
@@ -71,6 +71,32 @@ namespace OpenSim.Region.Framework.Interfaces
|
||||
UUID owner, bool senseAsAgent, Scene scene,
|
||||
AvatarAppearance appearance);
|
||||
|
||||
/// <summary>
|
||||
/// Create an NPC with a user-supplied agentID
|
||||
/// </summary>
|
||||
/// <param name="firstname"></param>
|
||||
/// <param name="lastname"></param>
|
||||
/// <param name="position"></param>
|
||||
/// <param name="agentID"></param>
|
||||
/// The desired agent ID
|
||||
/// <param name="owner"></param>
|
||||
/// <param name="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.
|
||||
/// </param>
|
||||
/// <param name="scene"></param>
|
||||
/// <param name="appearance">
|
||||
/// The avatar appearance to use for the new NPC.
|
||||
/// </param>
|
||||
/// <returns>
|
||||
/// The UUID of the ScenePresence created. UUID.Zero if there was a
|
||||
/// failure.
|
||||
/// </returns>
|
||||
UUID CreateNPC(string firstname, string lastname,
|
||||
Vector3 position, UUID agentID, UUID owner, bool senseAsAgent, Scene scene,
|
||||
AvatarAppearance appearance);
|
||||
|
||||
/// <summary>
|
||||
/// Check if the agent is an NPC.
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user