OsNpcLookAt: Difference between revisions
From OpenSimulator
Jump to navigationJump to search
imported>Djphil Add osNpcLookAt template |
imported>Djphil More description |
||
| Line 8: | Line 8: | ||
* targetkey : a object or avatar target | * targetkey : a object or avatar target | ||
* offset : a offset relative to that target or if target is nullkey a GLOBAL position. | * 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=ignored | |threat_level=ignored | ||
Revision as of 07:48, 16 February 2021
integer osNpcLookAt(key npckey, integer type, key targetkey, vector offset)
| |
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 | |