Jump to content

This simple script is not working ?


Deleted2838758User

Recommended Posts

I create a small mod where normal attacks consume stamina based on weight (by casting a damagestamina spell on the player). The spell works perfectly and I decided to create a small script to get the magnitude of the effect to make sure it is being calculated perfectly but the script doesn't work at all (the spell is working fine but the message never shows in-game

Scriptname SH_GetMagnitudeDebug extends activemagiceffect  

Actor caster
Actor target
Float Magnitude
Event OnEffectStart(Actor akTarget, Actor akCaster)
target = akTarget
caster = akCaster
Magnitude = self.GetMagnitude() as int
Debug.Notification(AkTarget as string + " Swung his weapon for " + Magnitude + " stamina cost")
EndEvent
Edited by Guest
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...