Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function reloadColorset()
- {
- //make torque recognize the changes you made
- setModPaths(getModPaths());
- //set the colors
- setSprayCanColors();
- for(%i=0;%i<clientgroup.getCount();%i++)
- {
- %b = clientgroup.getobject(%i);
- //hacky way of checking if they passed stage 3
- //this is not required if they have not passed stage 3
- //the client will do it at stage 3
- if(%b.hasSpawnedOnce)
- {
- //thanks port
- //transmit data about blocks
- //then reload the paint gui on client side
- %b.transmitStaticBrickData();
- commandToClient(%b, 'PlayGUI_LoadPaint');
- }
- }
- talk("Reloaded colorset.");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement