Blockland Forums > Suggestions & Requests
Smoking
Electrk:
--- Quote from: Lugnut1206 on June 18, 2012, 01:16:13 AM ---late noob is late
--- End quote ---
go away lugnut stop bullying me
tony-0222:
And no one took up on my bong and bowl idea? Pfffft :c
Treynolds416:
Don't let yola do it, god
Please, learn how to script before doing stuff, you still don't know what causes syntax errors
ZSNO:
--- Quote from: Lugnut1206 on June 18, 2012, 01:08:08 AM ---
-snip-
--- End quote ---
Hurr lets fix bad formatting with bad formatting.
--- Code: ---function serverCmdSmoke(%this)
{
messageClient(%this, '', "\c6" @ %this.getPlayerName() SPC "is no((%this.isSmoking) ? "w" : " longer") SPC "smoking."
if(%this.issmoking)
%this.unmountimage(0);
else
%this.mountImage(0,drugsmokeimage);
%this.issmoking=!%this.issmoking;
}
--- End code ---
Then use states on the image to loop the emitter.
As long as you make the image correct it should work.
No garuntees though since I edited on a crappy phone.
I would suggest moving the slot number too
¥ola:
--- Quote from: Treynolds416 on June 18, 2012, 11:33:26 AM ---Don't let yola do it, god
Please, learn how to script before doing stuff, you still don't know what causes syntax errors
--- End quote ---
...
Well then.
I suppose I definitely didn't completely write a script that mounts the cigarette model, plays it's animation, and loops through it...
Well, the only thing left to do is finish coloring the model.
Heres it so far:
Does that cigarette look too big, too small?