Difference between revisions of "Talk:GetItemHealthPercent - ObjectReference"
Jump to navigation
Jump to search
imported>Cipscis m (Closing unsigned template) |
imported>Oss133 |
||
Line 8: | Line 8: | ||
: -- [[User:Cipscis|Cipscis]] 16:09, 4 March 2012 (EST) | : -- [[User:Cipscis|Cipscis]] 16:09, 4 March 2012 (EST) | ||
This is the script which I have added to the Iron Dagger | |||
Scriptname aaHCMWARWepScript extends ObjectReference | |||
Event OnEquipped(Actor akActor) | |||
If akActor == Game.GetPlayer() | |||
Debug.Notification("Item has " + GetItemHealthPercent() + " Health") | |||
Endif | |||
endEvent | |||
Where do I find the Error Log? |
Revision as of 16:57, 4 March 2012
Returns 0
I am trying to use the result on armour and weapons but it always returns 0.000000. Anyone know whether this function is working or not? Oss133 —The preceding unsigned comment was added by 14:33, 4 March 2012 (EST) (talk • contribs) Oss113
- This function is never used in any vanilla scripts, so it's possible that it's broken. Just in case, though, could you post the script in which you've called it, in case you've done something wrong?
- When it returns 0, is anything relevant put in the error log?
- -- Cipscis 16:09, 4 March 2012 (EST)
This is the script which I have added to the Iron Dagger
Scriptname aaHCMWARWepScript extends ObjectReference Event OnEquipped(Actor akActor) If akActor == Game.GetPlayer() Debug.Notification("Item has " + GetItemHealthPercent() + " Health") Endif endEvent
Where do I find the Error Log?