GetCollisionLayerFromRef - ANDR PapyrusFunctions

From the CreationKit Wiki
Jump to navigation Jump to search

Member of: ANDR_PapyrusFunctions Script

Returns the integer of the collision layer of mesh of akRef.

Syntax[edit | edit source]

Int Function GetCollisionLayerFromRef(ObjectReference akRef) global native

Examples[edit | edit source]

Int iCollisionLayer = ANDR_PapyrusFunctions.GetCollisionLayerFromRef(BarrelRef01)

Debug.Trace("The collision layer of BarrelRef01 is " + iCollisionLayer + ".")

Parameters[edit | edit source]

  • akRef: the ref to check.

Return Value[edit | edit source]

The integer of the collision layer of akRef. If akRef is None, or the mesh is invalid, returns -1.

List of collision layers integers:

  • 0 = kUnidentified
  • 1 = kStatic
  • 2 = kAnimStatic
  • 3 = kTransparent
  • 4 = kClutter
  • 5 = kWeapon
  • 6 = kProjectile
  • 7 = kSpell
  • 8 = kBiped
  • 9 = kTrees
  • 10 = kProps
  • 11 = kWater
  • 12 = kTrigger
  • 13 = kTerrain
  • 14 = kTrap
  • 15 = kNonCollidable
  • 16 = kCloudTrap
  • 17 = kGround
  • 18 = kPortal
  • 19 = kDebrisSmall
  • 20 = kDebrisLarge
  • 21 = kAcousticSpace
  • 22 = kActorZone
  • 23 = kProjectileZone
  • 24 = kGasTrap
  • 25 = kShellCasting
  • 26 = kTransparentWall
  • 27 = kInvisibleWall
  • 28 = kTransparentSmallAnim
  • 29 = kClutterLarge
  • 30 = kCharController
  • 31 = kStairHelper
  • 32 = kDeadBip
  • 33 = kBipedNoCC
  • 34 = kAvoidBox
  • 35 = kCollisionBox
  • 36 = kCameraSphere
  • 37 = kDoorDetection
  • 38 = kConeProjectile
  • 39 = kCamera
  • 40 = kItemPicker
  • 41 = kLOS
  • 42 = kPathingPick
  • 43 = kUnused0
  • 44 = kUnused1
  • 45 = kSpellExplosion
  • 46 = kDroppingPick

See Also[edit | edit source]