GetProjectileRefImpactMaterial

From GECK
Jump to: navigation, search


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

[help]
(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

See Also