Blockland Forums > Modification Help
My scripting problems: 0
lordician:
--- Quote from: Sammygood on June 02, 2010, 07:14:57 AM ---OK, thats weird..... Why doesn't messageall message me?
--- End quote ---
It sends the message to others, but not to you?
I don't know how that could be, sorry.
Sammygood:
No matter, i just had messagemode disabled (i made a quick script to disable messaging). And i think i worked out how to use getsimtime()...
Amade:
This is how getSimTime() is used in the shotgun script to prevent players from re-equipping it to reload faster.
--- Code: ---function shotgunImage::onFire(%this,%obj,%slot)
{
if((%obj.lastFireTime + %this.minShotTime) > getSimTime())
return;
%obj.lastFireTime = getSimTime();
...
}
--- End code ---
Sammygood:
Thanks, i'll be using this :cookieMonster:.
Sammygood:
Updating...