how it works RequestModel ? HELP

Post » Mon Jun 18, 2012 10:51 am

Hi, I was trying to figure out how this script works, so I started creating a situation that requires it, as I understand it, so I made this code:



Scriptname HelloWorldWeaponType extends ObjectReference {script}ObjectReference ORModelObjectReference ORWeaponweapon WeapEvent OnActivate(ObjectReference akActionRef)Weap = Game.GetPlayer().GetEquippedWeapon()int formID = Weap.GetFormID()ORModel = Game.RequestModel(formID)ORWeapon = Game.GetPlayer().PlaceAtMe(ORModel, 1)ORWeapon.MoveToNode(Game.GetPlayer(), "NPC Head [Head]")endEvent

my main problem was to interpret the model name, as I did not find much information on the page of CK, I assumed that is the ID, so the main idea is to take the weapon equipped and put in the player's head when you touch the trigger, but what happens is that nothing appears, so I guess I did something wrong, I will appreciate any help ... thanks
User avatar
Aliish Sheldonn
 
Posts: 3487
Joined: Fri Feb 16, 2007 3:19 am

Post » Tue Jun 19, 2012 3:01 am

there's nobody?
User avatar
sexy zara
 
Posts: 3268
Joined: Wed Nov 01, 2006 7:53 am


Return to V - Skyrim