Editing
GetCollisionLayerFromRef - ANDR PapyrusFunctions
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
[[Category:Scripting]] [[Category:Papyrus]] '''Member of:''' [[ANDR_PapyrusFunctions Script]] Returns the integer of the collision layer of mesh of akRef. == Syntax == <syntaxhighlight lang="papyrus"> Int Function GetCollisionLayerFromRef(ObjectReference akRef) global native </syntaxhighlight> == Examples == <syntaxhighlight lang="papyrus"> Int iCollisionLayer = ANDR_PapyrusFunctions.GetCollisionLayerFromRef(BarrelRef01) Debug.Trace("The collision layer of BarrelRef01 is " + iCollisionLayer + ".") </syntaxhighlight> == Parameters == *akRef: the ref to check. == Return Value == 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 == *[[ANDR_PapyrusFunctions Script]]
Summary:
Please note that all contributions to the CreationKit Wiki are considered to be released under the Creative Commons Attribution-ShareAlike (see
CreationKit:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
Edit source
View history
More
Search
Navigation
Landing page
Tutorials
Game Systems
Editor Reference
Scripting Reference
Recent changes
Help
Tools
What links here
Related changes
Special pages
Page information
Page values