Hi
I'm using Project Q and it has two city gates one with the gate up and one with the gate down. I would like to have a script that would destroy one and spawn the other in its place. The idea is when ever the leave is switched that the placeables would swap out making it look as the city gate is oping and closing.
I was going to try and use NWN Script Generator LS-TK
/*
* Script generated by LS Script Generator, v.TK.0
*
* For download info, please visit:
* http://nwvault.ign.com/View.php?view=Other.Detail&id=1502
*/
// Put this script OnUsed.
void main()
{
object oTarget;
object oSpawn;
// Get the creature who triggered this event.
object oPC = GetLastUsedBy();
// Destroy an object (not fully effective until this script ends).
DestroyObject(GetObjectByTag("Gateup001"));
// Spawn "gatedown001".
oTarget = GetWaypointByTag("city gate");
oSpawn = CreateObject(OBJECT_TYPE_PLACEABLE, "gatedown001", GetLocation(oTarget));
}
but as you can tell I soon realized that the script I wanted to make was a little advanced for the script generator.
I was reading on the net that I would need to put two versions of the placeable at the same location (copy/paste the coordinates from one to the other to be sure) and set one as static, the other as not static.
Is there already a script on the web that I could use? If so could someone point it out to me?