EquipSpell() only if there is nothing in hand?

Post » Sun Jul 28, 2013 8:33 am

So I made a random item for testing.

I want to equip a spell in the left hand, but only if theres nothing in it.

This is the only thing i can think of

if

isEquipped spell = nothing ; For all types

isEquipped item = nothing

blah

blah

Game.GetPlayer().EquipSpell (testSpell)

end if

Is that how I have to do it? It Seem tedious

User avatar
Amelia Pritchard
 
Posts: 3445
Joined: Mon Jul 24, 2006 2:40 am

Post » Sat Jul 27, 2013 9:03 pm

SKSE to the rescue!

If PlayerRef.GetEquippedObject(0) == None   ; do stuffEndIf
- Hypno
User avatar
Claudz
 
Posts: 3484
Joined: Thu Sep 07, 2006 5:33 am

Post » Sun Jul 28, 2013 11:35 am

That's two times you've helped me to today =D you the best! Im off to get skse. =D

User avatar
Chris Cross Cabaret Man
 
Posts: 3301
Joined: Tue Jun 19, 2007 11:33 pm


Return to V - Skyrim