| Blockland Forums > Modification Help |
| I wanna colour someone white when they are hit with a projectile. |
| << < (3/3) |
| snot2:
temptational tempting is temporarily temporal |
| Spation:
It might just be me going mad but that makes sence. |
| Deathwish:
--- Quote from: Ephialtes on March 07, 2007, 05:33:56 PM ---Its actually: --- Code: ---function weaponImage::onCollision(%this, %obj, %col, %fade, %pos, %norm) { if(%col.getClassName() $= "Player") { %col.setTempColor("1 1 1 1",ammountOfTimeHereInMS); } } --- End code --- Ammount of time is the length of time you want them to stay that color. If you want them to be permanent, either set it to a very high number, or make a script to loop through all the player nodes and set them to white. --- End quote --- It seems this code doesn't work... Should i change the weaponImage name for the projectile name, maybe? |
| Navigation |
| Message Index |
| Previous page |