Author Topic: CoreHealth query.  (Read 3901 times)

Mihhaelo

  • Sapling
  • **
  • Thank You
  • -Given: 0
  • -Receive: 1
  • Posts: 67
CoreHealth query.
« on: July 02, 2010, 10:44:17 AM »
I would like to manually change the "health" of a planet throughout a game.

I know this can be done get GetAsteroid(x).CoreHealth = Number.

How do i retrieve the planets current CoreHealth though?

annikk.exe

  • Achiever
  • Ent
  • ****
  • Thank You
  • -Given: 0
  • -Receive: 4
  • Posts: 1,809
Re: CoreHealth query.
« Reply #1 on: July 02, 2010, 04:45:32 PM »
Use a variable.  Then you can call on it to check its value.


mycorehealth = whatever crazy maths you want to use

then,


GetAsteroid(x).CoreHealth = mycorehealth