Advertisement
Guest User

Untitled

a guest
May 1st, 2016
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. function fxDTSBrick::adjustColorOnOreContent(%this)
  2. {
  3. if(isObject(%this))
  4. {
  5. if(%this.getDatablock().isRock && %this.getDatablock().CityRPGBrickType == 4)
  6. {
  7. %this.hasOre = !%this.hasOre;
  8. %this.setColor(1);
  9.  
  10. if(!%this.hasOre)
  11. {
  12. %this.schedule(getRandom(60000, 120000), "adjustColorOnOreContent");
  13. }
  14. }
  15. }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement