- Found in:
- Dylbills PE
ObjectReferencefunctionGetLastProjectileHitRef(ObjectReferenceref, boolonly3dLoaded=true, boolonlyEnabled=true, intprojectileType=7)NativeGlobal
Description
Documentation Comment
get the last projectile object reference that hit the ref that match the conditions.
projectileTypes are: 1 = Missile, 2 = Grenade, 3 = Beam, 4 = Flamethrower, 5 = Cone, 6 = Barrier, 7 = Arrow.
if the projectileType param is none of those types, returns the last projectile that hit the ref regardless of type
requires iMaxArrowsSavedPerReference to be set to greater than 0 in DbSkseFunctions.ini
Parameters
ObjectReferenceref
boolonly3dLoaded=true
boolonlyEnabled=true
intprojectileType=7
Examples
Auto-Generated Example
ObjectReference myObjectReference__ref
bool myBool__only3dLoaded
bool myBool__onlyEnabled
int myInt__projectileType
ObjectReference returnedValue = DbSkseFunctions.GetLastProjectileHitRef(myObjectReference__ref, myBool__only3dLoaded, myBool__onlyEnabled, myInt__projectileType)