
08-08-2007, 12:21 PM
|
|
Incubator
|
 |
Join Date: Aug 2004
Location: Houston, Texas
Posts: 3,613
|
|
|
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. |
|
|
|