Blockland Files > Add-Ons
Output Event - SetAppearance(Setbodyparts - setbodycolors) V4
LoserHero:
Good job Rotondo, encore.
Space Guy:
This looks great.
Just a few suggestions/changes:
--- Code: --- function FxDTSBrick::onactivate(%brick,%player,%loc,%rot)
{
%player.client.lastbrickactivated = %brick;
Parent::onactivate(%brick,%player,%loc,%rot);
}
function FxDTSBrick::onplayertouch(%brick,%player,%loc,%rot)
{
%player.client.lastbrickactivated = %brick;
Parent::onplayertouch(%brick,%player,%loc,%rot);
}
--- End code ---
Idea: Package fxDTSBrick::processInputEvent(%brick,%input,%client) for this instead? Then it'll be compatible with every input event.
--- Quote --- %brick.hip = getword(%save,%hn++);
--- End quote ---
--- Quote ---servercmdupdatebodyparts(%client,%brick.hat,%brick.accent,%brick.pack,%brick.secondpack,%brick.chest,%brick.hipt,%brick.lleg,%brick.rleg,%brick.larm,%brick.rarm,%brick.lhand,%brick.rhand);
--- End quote ---
Is it supposed to be like this?
Rotondo:
Somehow I didn't notice fxDTSBrick::processInputEvent when running trace, I'll look into that.
I thought I already fixed the hipt mistype, but apparently it decided to stick around, fixed now re-download.
smartypantsp:
--- Quote from: THE OD NOTOR on August 23, 2008, 12:31:17 PM ---I thought I already fixed the hipt mistype, but apparently it decided to stick around, fixed now re-download.
--- End quote ---
I hate it when stuff does that.
Amiret:
I was the first person that made an event that changed a player's colors :(