Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function fxDTSBrick::adjustColorOnOreContent(%this)
- {
- if(isObject(%this))
- {
- if(%this.getDatablock().isRock && %this.getDatablock().CityRPGBrickType == 4)
- {
- %this.hasOre = !%this.hasOre;
- %this.setColor(1);
- if(!%this.hasOre)
- {
- %this.schedule(getRandom(60000, 120000), "adjustColorOnOreContent");
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement