Hello NGU I am new to the GSC scene and am looking for some help. I have succefully edited a Zombieland Menu by Shark and it is running great with no freezing and all the great map edits made by the NGU community. I just need help figuring out how to make a UFO MODE that zombies can use... Please Help and give me ur advice
The code i have works it just when u buy the UFO MODE it doesnt take the money and once Activated it wont take any money and allows you to buy anything without taking any money when i add
But when i take out the code "self.money -= level.itemPrice["ZOMBIE"]["General"]["UFOZOMBIE"];" it works no problem just doesnt take the money obviously but allows u to buy things regular . Also i had to add a second option just to deactivate the UFO Mode which works perfect.
I am new to this and have just been revising what i see in the menus and have come up with some great weapons. I will release soon with all dues.
Originally posted by another user
Toggleufozombie()
{
if (self.money >= level.itemPrice["Zombie"]["General"]["UFOZOMBIE"])
if(self.ufo==true||self.ufo)
self endon("disconnect");
self endon("death");
self endon("disableUFO");
self.UFO = booleanOpposite(self.UFO);
self iPrintln(booleanReturnVal(self.UFO, "UFO Mode: ^1OFF", "UFO Mode: ^2ON^7\nPress [{+frag}] To Move!"));
if (self.UFO)
{
self.parentObject = spawn("script_origin", self.origin);
self.parentObject.angles = self.angles;
self PlayerLinkTo(self.parentObject, undefined);
self disableWeapons();
for(;

{
if(self fragButtonPressed())
self.parentObject moveTo(playerAnglesToForward(self, 25), 0.05);
wait 0.01;
}
}
else
{
}
}
ToggleufoOFF()
{
if (self.money >= level.itemPrice["Zombie"]["General"]["UFOZOMBIEOFF"])
if(self.ufo==true||self.ufo)
self unlink();
self enableWeapons();
self.parentObject delete();
self notify("disableUFOZombie");
}