Epic Mount WIP need help(pics inside)

Post » Mon Jun 18, 2012 5:01 pm

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 ObjectReferenceobjectReference property sabreCat autoobjectReference property sabreCatHome autoEvent OnEquipped(objectReference akActor)If akActor == Game.GetPlayer()  sabreCat.MoveTo(Game.GetPlayer())endifendEvent

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
User avatar
Jason White
 
Posts: 3531
Joined: Fri Jul 27, 2007 12:54 pm

Post » Mon Jun 18, 2012 6:35 pm

I'm wondering if you can "equip" objectreferences? Can you try making it a WEAPON or ARMOR?

Also, you have PlayerRef as an ObjectReferences, IIRC it should be an Actor property.. even though you're using Game.GetPlayer() instead, which should work anyway.

Edit: Try http://www.creationkit.com/OnObjectEquipped_-_Actor
NVM I realize that is for a broad spectrum, not a specific object.
User avatar
Chris Johnston
 
Posts: 3392
Joined: Fri Jul 07, 2006 12:40 pm

Post » Mon Jun 18, 2012 8:22 am

Oh i thing you something wrong or maybe me....

objectReference property sabreCat auto = reference to the sabrecat mount standing in the worldspace

objectReference property sabreCatHome auto = XMrkaer where the cat shall be placed when dismissed.

And no im not trying to equip objecrreference, im equiping a Ring which uses this script onequip.
User avatar
Isabella X
 
Posts: 3373
Joined: Sat Dec 02, 2006 3:44 am


Return to V - Skyrim