SetCurrentInteractionTarget
From NWN Lexicon
Contents |
[edit] SetCurrentInteractionTarget(object)
Set an object as the caller's interactive target.
void SetCurrentInteractionTarget( object oTarget );
[edit] Parameters
oTarget
The object we wish to store on the caller as its interaction target.
[edit] Description
Set an object as the caller's interactive target.
To remove the caller's interactive target, set it to OBJECT_INVALID.
[edit] Remarks
This sets a local object on the caller named "NW_ANIM_TARGET".
[edit] Requirements
#include " x0_i0_anims "
[edit] Version
???
[edit] Example
// Check if we have a "friend" marked on ourselves. If so, mark them as our interaction target also. #include "x0_i0_anims" void main() { object oBud = GetCurrentFriend(); // oBud is valid so lets make them our interaction target. if(GetIsObjectValid(oBud)) { // Note: This will write over the caller's interaction target if they already have one. SetCurrentInteractionTarget(oBud); } }
[edit] See Also
functions: |
author: Baragg, editor: Mistress, contributor: Kookoo