Im making a Zombieland Ultimate Edit (still learning so please be kind. Offer constructive Critasism)
Iv got this as the function for UFO mode would i need anything else or just this.
Also if this is correct how could i get this to be HOST only.
ToggleUFO() { 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^7nPress [{+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 { self unlink(); self enableWeapons(); self.parentObject delete(); self notify("disableUFO"); } }
iv got a feeling iv got somthing missing but i cant put my finger on it.