Thread: Save and Apply
View Single Post
  #11  
Old 08-08-2007, 12:21 PM
Inverness Inverness is offline
Incubator
Inverness's Avatar
Join Date: Aug 2004
Location: Houston, Texas
Posts: 3,613
Inverness is a jewel in the roughInverness is a jewel in the rough
There is is no reason to be creating GUIs in the onCreated() section unless they're invisible or part of the HUD.

The mechanics of the script updating process don't need to be changed when its rather easy to have a workaround to some commands being called everytime onCreated() is.

For weapons on the serverside, a simple this.variable can be used since when you update weapons, the serverside variables are not cleared.

On clientside the weapon object is deleted and recreated so variables are lost, saving to the player object would be best way for this.
__________________
Reply With Quote