Well here I am again with another request for help!
Okay here is what I am working on (probably wrote it all wrong but hey that is why I am learning right?)
I want to create an unique item that can spawn an placeable by clicking on a location nearby the character (this case a campfire called Resting allowed as the resref)
{
object oPC;
if (!GetIsPC(GetItemActivatedTarget())
|| (GetObjectType(GetItemActivatedTarget())!=OBJECT_TYPE_PLACEABLE)
|| GetIsObjectValid(GetItemActivatedTarget())
){
SendMessageToPC(GetItemActivator(), "Improper use of item!");
return;}
object oTarget;
object oSpawn;
location lTarget;
oPC = GetItemActivator();
lTarget = GetItemActivatedTargetLocation();
oSpawn = CreateObject(OBJECT_TYPE_PLACEABLE, "restallowingplacable", lTarget);
}
}
So, the problem here is that it won't work.....the next issue I am having here is that it is not spawning (probably cause I used a few lines too much or something)
but then there is also another issue I am having on finding out, I also want to make it so that the player can despawn it by activating the item again.
so if anyone can help me with this I would REALLY appreciate it!
'>