Jump to content

Epic Mount WIP need help(pics inside)


tumbajamba

Recommended Posts

Hello Coding gurus! I need some help with implementing this guy(SabreCat Mount):

http://skyrim.nexusmods.com/imageshare/images/1196961-1326508130.jpg

 

At the moment i stucked on coding. What im trying to do is just create an Flute which can be equiped. On Equipe it shall summon the Cat mount, on unequipe the mount shall be moved to my secred cell=))

 

What ive done so far:

 

1) Created a Ring

2) applied script to it

 

But unfortunately my script doesnt work.

 

Scriptname TumbaFluteScript extends ObjectReference
objectReference property sabreCat auto
objectReference property sabreCatHome auto

Event OnEquipped(objectReference akActor)
If akActor == Game.GetPlayer()
 sabreCat.MoveTo(Game.GetPlayer())
endif
endEvent

 

I also defined properties in the property screen(see here)

http://skyrim.nexusmods.com/imageshare/images/1196961-1328980753.jpg

 

Can anybody plz tell me what do do?

 

 

Oh and here is compiling error:

 

Starting 1 compile threads for 1 files...

Compiling "TumbaFluteScript"...

d:\games\steam\steamapps\common\skyrim\Data\Scripts\Source\TumbaFluteScript.psc(7,0): the parameter types of function onequipped in the empty state on script tumbaflutescript do not match the parent script objectreference

No output generated for TumbaFluteScript, compilation failed.

 

Batch compile of 1 files finished. 0 succeeded, 1 failed.

Failed on TumbaFluteScript

Link to comment
Share on other sites

Yes I think I know what you are doing wrong, the OnEquipped event doesnt takes ObjectReference, takes Actor.

Scriptname TumbaFluteScript extends ObjectReference
ObjectReference property sabreCat auto
ObjectReference property sabreCatHome auto

Event OnEquipped(Actor akActor)
{no need for conditional here, the OnEquipped event is ran just one time, when you equip the item}
sabreCat.MoveTo(Game.GetPlayer())
endEvent

Try that, and how did u manage to get the sabrecat skeleton to be rideable? im trying to do something similar myself, maybe we can help each other.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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