Blockland Forums > Modification Help

Event Help

Pages: << < (2/5) > >>

Lugnut:


--- Code: ---function fxDTSBrick::checkMask(%obj,%client)
{
if(%obj.client.Gasmask == 0) //not 100% perfect, but suitable
{
//if(%obj.getType() & $TypeMasks::PlayerObjectType && %obj.getState() !$= "Dead")//unnecessary
//{ //unnecessary
//%db = %obj.getDatablock(); //unnecessary

//if(!%obj.isPlayer) //wtf is this stuff
//{
%this.onMaskFalse(%client);
}

else

{
%this.onMaskTrue(%client);
//} //depreciated
//} //depreciated
}
}
--- End code ---

fixed version


--- Code: ---function fxDTSBrick::checkMask(%obj,%client)
{
if(%obj.client.Gasmask == 0) //not 100% perfect, but suitable
{
%this.onMaskFalse(%client);
}
else
{
%this.onMaskTrue(%client);
}
}
--- End code ---


¥ola:


--- Quote from: Port on June 15, 2012, 12:27:28 PM ---If they don't have a gasmask:
    If the brick is a player and the brick is not dead:
        If the brick is not a player:
            Run "onMaskFalse"
        Otherwise:
            Run "onMaskTrue"

What the hell are you doing?

--- End quote ---

I knew %obj was wrong.

I took that almost exactly out of the ChemGrenade script.  
How the hell doesn't it work?

Port:


--- Quote from: ¥ola on June 15, 2012, 12:31:00 PM ---I knew %obj was wrong.

I took that almost exactly out of the ChemGrenade script. 
How the hell doesn't it work?

--- End quote ---

read my post and use common sense to find out why it doesn't work

Lugnut:


--- Quote from: ¥ola on June 15, 2012, 12:31:00 PM ---I knew %obj was wrong.

I took that almost exactly out of the ChemGrenade script. 
How the hell doesn't it work?

--- End quote ---
I knew it.
I loving kneeeeewww ittttt

I was hoping something else, because you said "you shouldn't rip code" in your topic, but forget.

¥ola:


--- Quote from: Lugnut1206 on June 15, 2012, 12:33:12 PM ---I knew it.
I loving kneeeeewww ittttt

I was hoping something else, because you said "you shouldn't rip code" in your topic, but forget.

--- End quote ---
Yeah.
And know I have learned my lesson.

forget.


Pages: << < (2/5) > >>

Go to full version