Jump to content

Neeg help with script not compiling in CK


BerzerkerKidd

Recommended Posts

I'm learning papyrus from immersion, and I can't figure out why this won't work, any help would be awesome, but please try to put it simply, and educate me if you have the patience!

 

My script is meant to make my bow act similarly to a bound bow, spawning in and equipping special arrows when equipped, and removing them when unequipped

 

heres my script

Scriptname DoveCustomArrowScript extends ObjectReference  

Ammo Property DoveCustomArrow auto

Event OnEquipped(Actor akActor)
	if akActor == Game.GetPlayer()
		Game.GetPlayer().AddItem(DoveCustomArrow,100,TRUE)
		Game.GetPlayer().EquipItem(DoveCustomArrow,TRUE,TRUE)
	endIf
endEvent
Event OnUnequipped(Actor akActor)
	if akActor == Game.GetPlayer()
		Game.GetPlayer().RemoveItem(DoveCustomArrow,akActor.getitemcount(DoveCustomArrow),TRUE)
	endIf
endEvent
Link to comment
Share on other sites

  • Recently Browsing   0 members

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