script HELP - show unequiped bow

Post » Tue Jun 19, 2012 4:26 am

Hi I had to translate all this, sorry for the mistakes, I try to make visible the player's equipment... before do the script for all the equipment, I wanted to start first with the bow and make this:

Scriptname DesequiparArco extends Actor{Accion al desequipar el arco}import gameimport utilityObjectReference Property ORBow Auto HiddenWeapon CurrentWeaponweapon WBowint PlayersEquippedWeaponTypeactor Property player autoEvent OnObjectEquipped(Form akBaseObject, ObjectReference akReference)if akBaseObject as Weapon  player = Game.GetPlayer()  PlayersEquippedWeaponType = player.GetEquippedItemType(1)  CurrentWeapon = player.GetEquippedWeapon()  if (PlayersEquippedWeaponType == 7)	Debug.MessageBox("using a bow")	WBow = CurrentWeapon  else   if (WBow == None)	Debug.MessageBox("no bow saved")   else	ORBow = Game.GetPlayer().PlaceAtMe(WBow, 1, true)	ORBow.MoveToNode(Game.GetPlayer(), "WeaponBow")	Debug.MessageBox("showing bow")   endif  endifendIfendEvent

what it does is stored in a variable the last bow equipped, then when you equip another weapon, the saved bow moves to the respective node, the problem is that falls without attach to the player, this is where I get stuck, I don't know how to link the bow to the player's node, i hope this helps...and I will appreciate if someone finds what it takes to complete the script...
User avatar
vicki kitterman
 
Posts: 3494
Joined: Mon Aug 07, 2006 11:58 am

Post » Tue Jun 19, 2012 12:43 am

bump
User avatar
Brandon Bernardi
 
Posts: 3481
Joined: Tue Sep 25, 2007 9:06 am

Post » Tue Jun 19, 2012 3:22 am

It sounds to me like http://www.creationkit.com/MoveToNode_-_ObjectReference moves a reference to a node, but doesn't make it stick there. Does that sound like what you're seeing?

Is this function used in any vanilla scripts?

Cipscis
User avatar
Dale Johnson
 
Posts: 3352
Joined: Fri Aug 10, 2007 5:24 am

Post » Mon Jun 18, 2012 8:33 pm

exactly, moving the reference but dont link it, maybe there is another way to do this ... I mean to stick nodes. I've tried several functions but I dont found a solution, in vanilla i found a script to attach the weapons to a rack, where use the MoveToNode for place the weapons, they used GetLinkRef for do a marker, but i don't sure what is that for...sorry the bad english
User avatar
kirsty joanne hines
 
Posts: 3361
Joined: Fri Aug 18, 2006 10:06 am

Post » Mon Jun 18, 2012 9:07 pm

bump
User avatar
Milad Hajipour
 
Posts: 3482
Joined: Tue May 29, 2007 3:01 am

Post » Mon Jun 18, 2012 6:33 pm

bump
User avatar
rae.x
 
Posts: 3326
Joined: Wed Jun 14, 2006 2:13 pm

Post » Mon Jun 18, 2012 6:42 pm

see http://skyrim.nexusmods.com/downloads/file.php?id=9614.
User avatar
Eoh
 
Posts: 3378
Joined: Sun Mar 18, 2007 6:03 pm

Post » Mon Jun 18, 2012 7:39 pm

awesome ... just what I tried to do ... but I would like to continue with my method, if anyone knows how, I would appreciate to help me
User avatar
Jeff Turner
 
Posts: 3458
Joined: Tue Sep 04, 2007 5:35 pm


Return to V - Skyrim