| Blockland Forums > Modification Help |
| Recolor question 2 |
| (1/3) > >> |
| lordician:
Yes, me again. And yes, again a recloring problem. Now that i know how to get the value, i am still doing SOMETHING wrong, but i have absolutely no idea what it could be! D: I tried many, many things, but i just can't seem to fix it. Please tell me, what is wrong here: --- Code: ---function Zombie::onAdd(%this,%obj) { parent::onAdd(%this,%obj); ZombieDefault::onAdd(%this,%obj); //%obj.mountimage(rocketlauncherimage,0); if(%obj.getClassName() $= "AIPlayer" && isObject(%brick = %obj.spawnBrick)) { if(%obj.spawnbrick.ReColorVehicle == 1) { %obj.schedule(100,setnodeColor,"ALL",%obj.getDataBlock().skinColor); } } } --- End code --- |
| Blockoman:
Bump for justice. |
| herb:
what are you trying to do here? |
| Blockoman:
Bump. |
| lordician:
--- Quote from: herb on August 02, 2010, 06:50:54 PM ---what are you trying to do here? --- End quote --- I try to check if the newly made ZombieDatablock (player or AI) is a bot, then i try to find if it has a spawnbrick, then i try to look if it has recolorvehicle on and if not, recolor the bot to the setted color in the datablock. |
| Navigation |
| Message Index |
| Next page |