Here is my gate guard script that worked great.Then somewhere down the line between spawining all the NPC and the mod growing this script fires if and when it wants to.
Why is it doing that and is there a btter way to script this?
I have this in fail to open
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void main()
{
object oPC = GetClickingObject();
if (!GetIsPC(oPC)) return;
object oTarget1;
oTarget1 = GetObjectByTag("");
AssignCommand(oTarget1,ActionSpeakString(""));
object oTarget;
oTarget = GetObjectByTag("stonewallguard");
AssignCommand(oTarget,ActionSpeakString("*Peek's out of his helmet at you then moves to open the gate*"));
object oDoor = GetObjectByTag("stonewallgate");
DelayCommand(4.5,SetLocked(oDoor,FALSE));
DelayCommand(5.0,ActionOpenDoor(oDoor));
}
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Modifié par Knight_Shield, 08 novembre 2011 - 10:02 .