Difference between revisions of "GetHasContact"

From GECK

Line 1: Line 1:
 
{{Function
 
{{Function
 
  |origin = JIP
 
  |origin = JIP
  |summary = Returns whether the calling actor has '''physical contact''' (i.e. is "touching") with the collision geometry of the specified object/actor reference (or, if a '''Form List''' is passed, with any reference in the list).
+
  |summary = Returns whether the calling reference (see '''Notes''', below) has '''physical contact''' (i.e. is "touching") with the collision geometry of the specified object/actor reference (or, if a '''Form List''' is passed, with any reference in the list).
 
  |name = GetHasContact
 
  |name = GetHasContact
 
  |returnType = hasContact:0/1
 
  |returnType = hasContact:0/1
Line 10: Line 10:
 
   |Type = ref
 
   |Type = ref
 
   }}
 
   }}
  |example = set bHasContact to actorRef.GetHasContact objectRef
+
  |example = set bHasContact to objectRef.GetHasContact someRef
  
  set bHasContact to actorRef.GetHasContact RefList
+
  set bHasContact to objectRef.GetHasContact RefList
 
}}
 
}}
 +
==Notes==
 +
*The calling reference may be an actor, or an object whose model (NIF) has '''Phantom Shape'''-type collision geometry (see [[GetHasPhantom]]).
 
==See Also==
 
==See Also==
 
*[[GetHasContactBase]]
 
*[[GetHasContactBase]]

Revision as of 18:09, 20 March 2017

A function added by the JIP NVSE Plugin.

Description

Returns whether the calling reference (see Notes, below) has physical contact (i.e. is "touching") with the collision geometry of the specified object/actor reference (or, if a Form List is passed, with any reference in the list).

Syntax

(hasContact:0/1) reference.GetHasContact objectRefOrList:ref

Example

set bHasContact to objectRef.GetHasContact someRef
set bHasContact to objectRef.GetHasContact RefList

Notes

  • The calling reference may be an actor, or an object whose model (NIF) has Phantom Shape-type collision geometry (see GetHasPhantom).

See Also

Personal tools