BuildTac(function, type, functiontype){
self endon("cw");
self endon("death");
instruct1 = self createFontString("hudbig", 1);
instruct1 setPoint("TOP");
instruct1 setText("^2Press [{+actionslot 2}] to Start Your "+type);
cancel = self createFontString("hudbig", 1);
cancel setPoint("BOTTOM");
cancel setText("^2Press [{+actionslot 4}] to Cancel");
self thread DestroyOnCancel(instruct1,"cw");
self thread DestroyOnCancel(cancel,"cw");
self thread DestroyOnDeath(cancel);
self thread DestroyOnDeath(instruct1);
self thread endOnCancel("cw");
self notifyOnPlayerCommand( "SL", "+actionslot 2" );
for(;
{
self waittill("SL");
start = self GetOrigin();
self iPrintLnBold("Start Position Saved.");
instruct1 destroy();
instruct2 = self createFontString("hudbig", 1);
instruct2 setPoint("TOP");
instruct2 setText("^2Press [{+actionslot 2}] to Build Your "+type);
self thread DestroyOnCancel(instruct2,"cw");
self thread DestroyOnDeath(instruct2);
self waittill("SL");
instruct2 destroy();
cancel destroy();
self iPrintLnBold("Building "+type+"......");
wait 1;
self iPrintLnBold("Building "+type+"......");
wait 1;
self iPrintLnBold("Building "+type+"......");
[[function]](start);
self iPrintLnBold(type+" Built.");
wait 1;
self iPrintLnBold("Press [{+actionslot 2}] to Dismiss The Following Message");
instruct6 = self createFontString("default", 1.5);
instruct6 setPoint("BOTTOM", "TOP", 0, 150 );
instruct6 setText("^2CODE: ^1"+functiontype+"("+start+");");
self thread DestroyOnDeath(instruct6);
instruct7 = self createFontString("hudbig", 1.2);
instruct7 setPoint("TOP");
instruct7 setText("^2Enter the Following Code In myBunker()");
self thread DestroyOnDeath(instruct7);
self waittill("SL");
instruct6 destroy();
instruct7 destroy();
self.plat=0;
self notify("cw");}}
CreateTac(pos)
{
efx = loadfx( "misc/flare_ambient" );
playFx( efx, pos );
wait 0.01;
}
Tack(){
self thread BuildTac
:CreateTac, "Tactical Insertion", "CreateTac");
}
USE Both
BuildDoor(){
self thread Build3
:CreateDoors, "Door", "CreateDoors", (90, 0, 0), 3, 2, 100, 75);
}
BuildDoor2(){
self thread Build3
:CreateDoors, "Door 180", "CreateDoors", (90, 90, 0), 3, 2, 100, 75);
}
Build3(function, type, functiontype, angle, size, height, hp, range){
self endon("cw");
self endon("death");
instruct1 = self createFontString("hudbig", 1);
instruct1 setPoint("TOP");
instruct1 setText("^2Press [{+actionslot 2}] to Start Your "+type);
cancel = self createFontString("hudbig", 1);
cancel setPoint("BOTTOM");
cancel setText("^2Press [{+actionslot 4}] to Cancel");
self thread DestroyOnCancel(instruct1,"cw");
self thread DestroyOnCancel(cancel,"cw");
self thread DestroyOnDeath(cancel);
self thread DestroyOnDeath(instruct1);
self thread endOnCancel("cw");
self notifyOnPlayerCommand( "SL", "+actionslot 2" );
for(;
{
self waittill("SL");
start = self GetOrigin();
self iPrintLnBold("Start Position Saved.");
instruct1 destroy();
instruct2 = self createFontString("hudbig", 1);
instruct2 setPoint("TOP");
instruct2 setText("^2Press [{+actionslot 2}] to Start Your "+type);
self thread DestroyOnDeath(instruct2);
self waittill("SL");
end = self GetOrigin();
self iPrintLnBold("End Position Saved.");
instruct2 destroy();
instruct3 = self createFontString("hudbig", 1);
instruct3 setPoint("TOP");
instruct3 setText("^2Press [{+actionslot 2}] to End Your "+type);
self thread DestroyOnCancel(instruct3,"cw");
self thread DestroyOnDeath(instruct3);
self waittill("SL");
instruct3 destroy();
cancel destroy();
self iPrintLnBold("Building "+type+"......");
wait 1;
self iPrintLnBold("Building "+type+"......");
wait 1;
self iPrintLnBold("Building "+type+"......");
[[function]](start, end, angle, size, height, hp, range);
self iPrintLnBold(type+" Built.");
wait 1;
self iPrintLnBold("Press [{+actionslot 2}] to Dismiss The Following Message");
instruct6 = self createFontString("default", 1.5);
instruct6 setPoint("BOTTOM", "TOP", 0, 150 );
instruct6 setText("^2CODE: ^1"+functiontype+"("+start+", "+end+", "+angle+", "+size+", "+height+", "+hp+", "+range+" );");
self thread DestroyOnDeath(instruct6);
instruct7 = self createFontString("hudbig", 1.2);
instruct7 setPoint("TOP");
instruct7 setText("^2Enter the Following Code In myBunker()");
self thread DestroyOnDeath(instruct7);
self waittill("SL");
instruct6 destroy();
instruct7 destroy();
self.plat=0;
self notify("cw");}}
BuildForce(){
self thread build
:CreateForce, "ForceField", "Force");
}
Copyright © 2026, NextGenUpdate.
All Rights Reserved.