PC adds firewood to their fire turning the campfire placeable into a bonfire placeable.
Is it possible to spawn it in the exact location of the old campfire but bring it down -.2 the Z axis?
Here is what I have so far. The bonfire placeable just isn't appearing at all. Thanks in advance!
location lTarget;
location lTarget1;
object oTarget;
object oItem;
#include "nw_i0_2q4luskan"
void main()
{
object oPC = GetPCSpeaker();
if (GetItemPossessedBy(oPC, "wood_firewood")!= OBJECT_INVALID)
{
AssignCommand(oPC, ActionPlayAnimation(ANIMATION_LOOPING_GET_LOW, 1.0f, 5.0f));
oItem = GetItemPossessedBy(oPC, "wood_firewood");
if (GetIsObjectValid(oItem)) DestroyObject(oItem);
oTarget = GetObjectByTag("FIRE");
DelayCommand(3.0, DestroyObject(oTarget, 0.0));
lTarget = GetLocation(oTarget);
vector vCurrentPosition = GetPosition(oTarget);
vector vNewPosition = Vector();
vNewPosition.x= vCurrentPosition.x;
vNewPosition.y= vCurrentPosition.y;
vNewPosition.z= vCurrentPosition.z - 0.20;
location lTargetl= Location(OBJECT_SELF, vNewPosition, 0.0);
DelayCommand(1.5, CreateObjectVoid(OBJECT_TYPE_PLACEABLE, "bonfireflame", lTarget));
DelayCommand(3.0, CreateObjectVoid(OBJECT_TYPE_PLACEABLE, "bonfire", lTarget1));
DelayCommand(3.0, CreateObjectVoid(OBJECT_TYPE_PLACEABLE, "zep_smokeb", lTarget));
DelayCommand(3.0, FloatingTextStringOnCreature("The fire begins to roar!", oPC));
}
else
{
SendMessageToPC(oPC, "You don't have any firewood");
}
}