„Chris.MultiNPC.lsl“ ändern
This commit is contained in:
parent
83050b69f7
commit
90b49dca54
|
@ -87,7 +87,7 @@ integer script_create(integer slot, key npc, list command)
|
|||
if(npc != NULL_KEY)
|
||||
osNpcRemove(npc);
|
||||
|
||||
list objects = osGetSearchableObjectList(llList2String(command, 4));
|
||||
list objects = osGetSearchableObjectPartList(llList2String(command, 4));
|
||||
if(llGetListLength(objects) == 0)
|
||||
{
|
||||
llSay(0, "Cant find the position for an object with the name '" + llList2String(command, 4) + "'.");
|
||||
|
@ -123,7 +123,7 @@ integer script_say(integer slot, key npc, list command)
|
|||
|
||||
integer script_sit(integer slot, key npc, list command)
|
||||
{
|
||||
list objects = osGetSearchableObjectList(llList2String(command, 1));
|
||||
list objects = osGetSearchableObjectPartList(llList2String(command, 1));
|
||||
if(llGetListLength(objects) == 0)
|
||||
{
|
||||
llSay(0, "Cant find the sit target '" + llList2String(command, 1) + "'.");
|
||||
|
@ -153,7 +153,7 @@ integer script_walk(integer slot, key npc, list command)
|
|||
|
||||
if(llList2Vector(command, 1) == <0, 0, 0>)
|
||||
{
|
||||
list objects = osGetSearchableObjectList(llList2String(command, 1));
|
||||
list objects = osGetSearchableObjectPartList(llList2String(command, 1));
|
||||
if(llGetListLength(objects) == 0)
|
||||
{
|
||||
llSay(0, "Cant find the walk target '" + llList2String(command, 1) + "'.");
|
||||
|
@ -179,7 +179,7 @@ integer script_fly(integer slot, key npc, list command)
|
|||
|
||||
if(llList2Vector(command, 1) == <0, 0, 0>)
|
||||
{
|
||||
list objects = osGetSearchableObjectList(llList2String(command, 1));
|
||||
list objects = osGetSearchableObjectPartList(llList2String(command, 1));
|
||||
if(llGetListLength(objects) == 0)
|
||||
{
|
||||
llSay(0, "Cant find the fly target '" + llList2String(command, 1) + "'.");
|
||||
|
@ -192,7 +192,7 @@ integer script_fly(integer slot, key npc, list command)
|
|||
targetPosition = llList2Vector(command, 1);
|
||||
}
|
||||
|
||||
osNpcMoveToTarget(npc, targetPosition, OS_NPC_FLY);
|
||||
osNpcMoveToTarget(npc, targetPosition, OS_NPC_FLY | OS_NPC_LAND_AT_TARGET );
|
||||
|
||||
m_npcdata = setDataEntryInDataList(m_npcdata, "npc." + slot + ".state", "walk");
|
||||
m_npcdata = setDataEntryInDataList(m_npcdata, "npc." + slot + ".targetPosition", targetPosition);
|
||||
|
@ -201,7 +201,7 @@ integer script_fly(integer slot, key npc, list command)
|
|||
|
||||
integer script_touch(integer slot, key npc, list command)
|
||||
{
|
||||
list objects = osGetSearchableObjectList(llList2String(command, 1));
|
||||
list objects = osGetSearchableObjectPartList(llList2String(command, 1));
|
||||
if(llGetListLength(objects) == 0)
|
||||
{
|
||||
llSay(0, "Cant find the touch target '" + llList2String(command, 1) + "'.");
|
||||
|
|
Loading…
Reference in New Issue