GetProjectileRefImpactMaterial
From GECK
A function added by the JIP NVSE Plugin.
Description
Returns the material type of the solid body that was hit by the calling live-projectile.
- This function is designed to be used in a OnProjectileImpact event-handler script, and is otherwise unreliable.
Syntax
(materialType:int) reference.GetProjectileRefImpactMaterial
Example
set iMaterialType to projectileRef.GetProjectileRefImpactMaterial
Material Types
0 Stone 1 Dirt 2 Grass 3 Glass 4 Metal 5 Wood 6 Organic 7 Cloth 8 Water 9 Hollow Metal