Blockland Forums > Modification Help

On Brick Hit If Projectile

Pages: << < (3/7) > >>

Destiny/Zack0Wack0:

Is there any chance that the brick isn't raycasting? Try replacing the getType part with:

--- Code: ---if(%col.getClassName() !$ = "fxDtsBrick")
        return;

--- End code ---
If that doesn't work, then dump %col and see what it is, there might be something wrong with the args.

For the admin only brick thing, you would package fxDtsBrick::onPlant(%brick), get the brick group from the object and if the .client value of the brickgroup is an object and the client isn't admin, delete the brick (and show them a message, I guess).

jes00:


--- Quote from: Destiny/Zack0Wack0 on November 28, 2011, 01:51:11 AM ---Is there any chance that the brick isn't raycasting? Try replacing the getType part with:

--- Code: ---if(%col.getClassName() !$ = "fxDtsBrick")
        return;

--- End code ---
If that doesn't work, then dump %col and see what it is, there might be something wrong with the args.

For the admin only brick thing, you would package fxDtsBrick::onPlant(%brick), get the brick group from the object and if the .client value of the brickgroup is an object and the client isn't admin, delete the brick (and show them a message, I guess).

--- End quote ---
D:

Destiny/Zack0Wack0:

I accidentally put a space between the equals sign and the dollar sign.

jes00:


--- Quote from: Destiny/Zack0Wack0 on November 28, 2011, 06:22:35 AM ---I accidentally put a space between the equals sign and the dollar sign.

--- End quote ---
Same result, nothing! I think it's the SkillPickaxeProjectile::onCollision that hates me.

computermix:

Maybe a white space got behind the "return;" part. Delete everything behind it and press tab until it looks right. If that doesn't work, comment the "if(%col.getClassName() !$= "fxdtsbrick")" thing out and see if its actually causing the problem or not.

Pages: << < (3/7) > >>

Go to full version