Background for Skyrim SE
Member of the DbSkseFunctions script
ObjectReferencefunctionGetLastProjectileShotRef(ObjectReferenceref, boolonly3dLoaded=true, boolonlyEnabled=true, intprojectileType=7)NativeGlobal

Description

Documentation Comment

get the last projectile object reference that was shot by 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 was shot by the ref regardless of type
requires iMaxArrowsSavedPerReference to be set to greater than 0 in DbSkseFunctions.ini


Parameters

  1. ObjectReferenceref

  2. boolonly3dLoaded=true

  3. boolonlyEnabled=true

  4. intprojectileType=7


Examples

Auto-Generated Example

ObjectReference myObjectReference__ref
bool myBool__only3dLoaded
bool myBool__onlyEnabled
int myInt__projectileType

ObjectReference returnedValue = DbSkseFunctions.GetLastProjectileShotRef(myObjectReference__ref, myBool__only3dLoaded, myBool__onlyEnabled, myInt__projectileType)
Some data provided by the Skyrim Creation Kit Wiki. Licensed under the Creative Commons Attribution-ShareAlike license.