Difference between revisions of "GetHasContactType"

From GECK

(Created page with "{{Function |origin = JIP |summary = Returns whether the calling actor has '''physical contact''' (i.e. is "touching") with the collision geometry of an object/actor referenc...")
 
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 an object/actor reference whose base type matches the specified [[Form Type IDs|type code]].
+
  |summary = Returns whether the calling reference (see '''Notes''', below) has '''physical contact''' (i.e. is "touching") with the collision geometry of an object/actor reference whose base type matches the specified [[Form Type IDs|type code]].
 
  |name = GetHasContactType
 
  |name = GetHasContactType
 
  |returnType = hasContact:0/1
 
  |returnType = hasContact:0/1
Line 10: Line 10:
 
   |Type = int
 
   |Type = int
 
   }}
 
   }}
  |example = set bHasContact to actorRef.GetHasContactType 28
+
  |example = set bHasContact to objectRef.GetHasContactType 28
 
}}
 
}}
 +
==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==
 
*[[GetHasContact]]
 
*[[GetHasContact]]

Revision as of 17:13, 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 an object/actor reference whose base type matches the specified type code.

Syntax

(hasContact:0/1) reference.GetHasContactType typeID:int

Example

set bHasContact to objectRef.GetHasContactType 28

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