View Single Post
  #1  
Old 05-04-2005, 07:09 AM
Velox Cruentus Velox Cruentus is offline
Registered User
Velox Cruentus's Avatar
Join Date: Dec 2004
Location: Quebec, Canada
Posts: 465
Velox Cruentus is on a distinguished road
Send a message via ICQ to Velox Cruentus Send a message via AIM to Velox Cruentus
Functions & Parameters

Functions should be able to handle extra parameters that are undeclared, much like trigger events:

PHP Code:
// EVENT
  
player.trigger("addWeapons","Message","TempPlayer","Login");
// CLOSE EVENT

public function onaddWeapons()
{
  for (
weapparams)
    
this.addWeapon(weap);

To...

PHP Code:
// EVENT
  
player.addWeapons("Message","TempPlayer","Login");
// CLOSE EVENT

public function addWeapons()
{
  for (
weapparams)
    
this.addWeapon(weap);

While I'm at it -- You may as well add a addWeapons() function O,o; It might serve it's purpose... Or let everyone who wants to do that do like me?

Reenable this.destroy() == Deleting the weapon
(client & serverside) and let protectedweapon prevent it from deleting serverside?

Umm... Removing weapons with GUI Control doesn't delete the GUI Control.
__________________
In a world of change... Who'll you believe?
Reply With Quote