Scripting: OnUpdate not working with armor items

Post » Tue Jun 19, 2012 12:18 am

It seems the "OnUpdate" event (registerforupdate) does not work with any armor items (scripts).

Anyone else had this same problem or is it meant to be this way? (if it is then thats weird because OnUpdate works fine with weapon item scripts).

:dry:
User avatar
Javaun Thompson
 
Posts: 3397
Joined: Fri Sep 21, 2007 10:28 am

Post » Tue Jun 19, 2012 2:09 pm

There's probably a problem with your script, please post it.

I'm http://www.gamesas.com/topic/1348857-scripting-cant-get-a-private-variable-to-function-as-needed/page__p__20324609#entry20324609 I've referred you to this stickied thread before, but please read "http://www.gamesas.com/topic/1347469-how-to-ask-for-scripting-help/"

Cipscis
User avatar
Fiori Pra
 
Posts: 3446
Joined: Thu Mar 15, 2007 12:30 pm

Post » Tue Jun 19, 2012 2:24 am

There's probably a problem with your script, please post it.

I'm http://www.gamesas.com/topic/1348857-scripting-cant-get-a-private-variable-to-function-as-needed/page__p__20324609#entry20324609 I've referred you to this stickied thread before, but please read "http://www.gamesas.com/topic/1347469-how-to-ask-for-scripting-help/"

Cipscis

Nope I am 99% certain its not the script since I use the same script on a weapon item and it works perfectly, heres the script:



Event OnUpdate()

Game.GetPlayer().AddItem(ArmorToken, 99, false) ;; a property is attached to this script for this item

endevent


Event OnEquipped(Actor akActor)

registerForUpdate(1)

EndEvent
User avatar
Emma Copeland
 
Posts: 3383
Joined: Sat Jul 01, 2006 12:37 am

Post » Tue Jun 19, 2012 3:17 pm

Did you change the type of script that it extends from, from a weapon script to an armor script?

(I don't even know if this is necessary, but worth a shot?)
User avatar
Claire Jackson
 
Posts: 3422
Joined: Thu Jul 20, 2006 11:38 pm

Post » Tue Jun 19, 2012 12:47 pm

Did you change the type of script that it extends from, from a weapon script to an armor script?

(I don't even know if this is necessary, but worth a shot?)

Both weapon and armor items have the "object reference" extension so thats not the problem.

:confused:
User avatar
Nathan Barker
 
Posts: 3554
Joined: Sun Jun 10, 2007 5:55 am


Return to V - Skyrim