Jiroxys7 |
04-18-2011 05:34 PM |
Weapons joined to a class do not stay joined after reconnecting.
Just as the topic title says. I've been using classes joined to weapons to handle buff processing as well as stat processing.
However each time I disconnect, upon connecting to the server again, the classes will be no longer joined to my weapon. They will remain unjoined until I open the weapon script and click "Apply". I end up having to do this every time I connect to the server.
I figured that joining them with
PHP Code:
function onTimeout(){
join("classname");
setTimer(0.05);}
instead of the method I've been using which is
PHP Code:
function onCreated(){
join("classname");
}
would remedy the problem, but it doesn't make any difference. Using an onPlayerenters() event instead does not fix the issue either. Nor does calling onCreated(); inside of an onTimeout().
Is there something I'm missing? Is this a bug? What's going on?
|