OsNpcLookAt

From OpenSimulator

(Difference between revisions)
Jump to: navigation, search
(More description)
(More description)
Line 3: Line 3:
 
|csharp_syntax=
 
|csharp_syntax=
 
|description=
 
|description=
 +
<div style="background-color:#FFA0A0; padding:10px; padding-bottom:5px; border: 1px #FF544F solid">
 +
'''Caution !''' still experimental, subject to changes
 +
</div>
  
 
* npckey : The key of the npc.
 
* npckey : The key of the npc.

Revision as of 00:05, 16 February 2021

integer osNpcLookAt(key npckey, integer type, key targetkey, vector offset)

Caution ! still experimental, subject to changes

  • npckey : The key of the npc.
  • type : the type of the lookat a integer < 11, for now, not that clear how viewers do handle them
  • targetkey : a object or avatar target
  • offset : a offset relative to that target or if target is nullkey a GLOBAL position.

To set "normal" look fw osNpcLookAt

osNpcLookAt(npckey, 1, npckey, <2.5, 0.0, 0.0>); // (target is the npc, offset = positive x)
Threat Level This function does not do a threat level check
Permissions Use of this function is always allowed by default
Extra Delay 0 seconds
Example(s)
// 
// Example of osNpcLookAt
// 
 
default
{
    state_entry()
    {
        ...
        osNpcLookAt(...);
        ...
    }
}
Notes
This function was added in 0.9.2.0


Personal tools
General
About This Wiki