I'm trying to make an item that will summon in a creature to act as a companion/familiar. I can get the creature to spawn but it does not show under my character like a companion/familiar should. It just stands there and will not follow me. What am i missing? Below is the script im using.
Thanks!
[nwscript]
/*
* Script generated by LS Script Generator, v.TK.0
*
* For download info, please visit:
*
http://nwvault.ign.c....Detail&id=1502
*/
void main()
{
object oSpawn;
effect eVFX;
object oEventItem = GetItemActivated();
object oActTarget = GetItemActivatedTarget();
location lActTarget = GetItemActivatedTargetLocation();
object oActivator = GetItemActivator();
object oPC = oActivator;
// This item must target a location (not an object).
if ( GetIsObjectValid(oActTarget) )
{
SendMessageToPC(oActivator, "Improper use of this item!");
return;
}
// Spawn "james".
eVFX = EffectVisualEffect(VFX_IMP_RESTORATION);
oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "valandil", lActTarget);
DelayCommand(0.5, ApplyEffectToObject(DURATION_TYPE_INSTANT, eVFX, oSpawn));
}
[/nwscript]