View Single Post
  #1  
Old 05-16-2012, 01:30 AM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
I fail to see how you're having an issue with a toggle but I can tell if you plan to make multiple weapons that use this same kind of system, you'll be incurring a bad time.

Toggles are very basic and typically done like this:

PHP Code:
//#CLIENTSIDE
function onWeaponFired() {
  if (
this.on) {
    
player.chat "I am no longer on.";
    
this.on false;
  } else {
    
player.chat "I am on.";
    
this.on true;
  }

If you completed my 'Staff Boots Challenge' on my tutorial you would have created a working toggle script.
__________________
Quote:
Reply With Quote