| Blockland Forums > Modification Help |
| ::Client::PlayAnimation:: As: ShakeHead etc ::: Default |
| << < (3/3) |
| dUMBELLS:
--- Quote from: xcruso on August 09, 2011, 04:18:20 PM ---Yes, but not when i Click, When I do a blah..(); in console or something --- End quote --- You can't really do it client-sided on other people's servers, except if the server has an add-on that lets you. You'd need to package Armor::onTrigger if you wanted a message to appear when you clicked, and it would only work on your server. this by itself would work (though it also shows the message when you jump): --- Code: ---package PACKAGENAME { function Armor::onTrigger(%num,%player,%boolA,%boolB) { %player.clicked=(%player.clicked==true ? false : true); // using this so that two messages don't show up Parent::onTrigger(%num,%player,%boolA,%boolB); if(%player.clicked==true) { %client=%player.client; %client.schedule(2000,"chatMessage","You clicked two seconds ago GJ."); } } }; activatePackage("PACKAGENAME"); --- End code --- |
| dUMBELLS:
--- Quote from: xcruso on August 09, 2011, 04:20:32 PM ---But what about When i Undo a brick in other servers I do the Shake head animation isnt it possible to make it launch any other ways? --- End quote --- if you're on another person's server you can't change the animation which plays when you undo a brick. You might be able to on your server if you package the right functions though. |
| xcruso:
--- Quote from: dUMBELLS on August 09, 2011, 04:28:36 PM ---if you're on another person's server you can't change the animation which plays when you undo a brick. You might be able to on your server if you package the right functions though. --- End quote --- k, ty |
| Navigation |
| Message Index |
| Previous page |