Quote:
Originally Posted by fowlplay4
You could have a DB NPC called Static Variables or something..
PHP Code:
function onCreated() {
staticvar = this;
}
Then in other scripts just reference it like so:
PHP Code:
function onCreated() {
staticvar.crazyexample = 100;
echo(staticvar.crazyexample); // 100 should appear on RC
}
|
I wasn't aware that DBNPCs were guaranteed to be accessible on clientside at all times.
I would suggest having a system weapon create a TStaticVar.