Hi all,
I wrote this script with LilacSoul's generator, but when I save it, it says "Error: Variable Defined without type".
It's a trigger that's supposed to spawn a pick (not a placeable but an item to be picked up) at a waypoint called PickQuest. Any help is much appreciated.
![:)](/web/20160824102846im_/https://lvlt.forum.bioware.com/public/style_emoticons/default/smile.png)
//Put this script OnEnter
void main()
{
object oPC = GetEnteringObject();
if (!GetIsPC(oPC)) return;
int DoOnce = GetLocalInt(oPC, GetTag(OBJECT_SELF));
if (DoOnce==TRUE) return;
SetLocalInt(oPC, GetTag(OBJECT_SELF), TRUE);
if (GetLocalInt(oPC, "Pick Quest")== 1)
{
oTarget = GetObjectByTag("PickQuest");
CreateItemOnObject("pick", oTarget);
}
}