GetKillXP

From GECK
Jump to: navigation, search


A function added by the JIP NVSE Plugin.

Description

Returns the calculated experience points (XP) the player character will gain by killing the calling actor. Note that the XP is also gained if a player companion kills the calling actor, unless `bNoCompanionKillXP` is enabled in lStewieAl's Tweaks.

Syntax

[help]
(killXP:float) reference.GetKillXP

Example

set fKillXP to actorRef.GetKillXP 

Notes

  • This function does not account for the "Adjust Experience Points" perk Entry Point. When necessary, use `GetPerkModifier 9` to adjust the count. For example:
float fKillXP
float fCalcKillXP

let fKillXP := SunnyREF.GetKillXP
let fCalcKillXP := Player.GetPerkModifier 9 fKillXP

See Also