GetProjectileTrapOrigin

From NWN Lexicon
Jump to navigationJump to search



GetProjectileTrapOrigin(object, object)

Gets the origin for a projectile trap.

object GetProjectileTrapOrigin(
    object oTarget,
    object oTrigger = OBJECT_SELF
);

Parameters

oTarget

Target to get the nearest object with a matching tag of oTrigger to.

oTrigger

Object to examine the tag of for use in finding the closest object to oTarget. (Default: OBJECT_SELF)


Description

Returns the nearest object to the target that has a tag matching the tag of the trigger.



Requirements

#include " x0_i0_projtrap "

Version

1.61

See Also



 author: Charles Feduke