Getting Reference IDs

Post » Sat Aug 18, 2012 9:01 am

I'm trying to get a handle on what references a script can have access to. Can't sit in front of the CK for a few hours, but I'm wondering if something like this would be possible:

Scriptname MyEffectScript extends ActiveMagicEffect  potion property heal autoleveledactor property MyInstantFriend autoreference MyInstantFriendRefEvent OnEffectStart(Actor AkTarget, Actor akCaster)		MyInstantFriendRef = akCaster.placeatme(MyInstantFriend)		MyInstantFriendRef.additem(heal, 1)		EndEvent

Would this add a heal potion the the actor I just created?
User avatar
Emily Jeffs
 
Posts: 3335
Joined: Thu Nov 02, 2006 10:27 pm

Return to V - Skyrim