December 22, 2024, 06:47:17

Author Topic: [Answered] Celestials  (Read 6264 times)

Offline Mularac

  • Lieutenant
  • ***
  • Posts: 531
  • Karma: 11
    • View Profile
[Answered] Celestials
« on: December 21, 2009, 22:51:39 »
Celestials: anybody know how to select them in-mission, or at the .rules files?
'cause I'm really curious about how the celestial:uPlanetSurfBattle(enable); command works...
« Last Edit: April 05, 2011, 04:34:59 by Mularac »

Offline Arparso

  • Administrator
  • Lieutenant
  • *****
  • Posts: 558
  • Karma: 14
  • I can see you...
    • View Profile
    • http://arparso.de/nexus
(No subject)
« Reply #1 on: December 22, 2009, 01:12:50 »
You can get the celestial object using uget(name):

Code: [Select]
Uget("Earth"):uPlanetSurfBattle(1);
or also

Code: [Select]
myEarthVariable := Uget("Earth");
myEarthVariable:uPlanetSurfBattle(1);

Doesn't work in the mission editor, though, because Nexus doesn't recognize the uget und uPlanetSurfBattle functions in the editor (they were intended for campaign-use only, it seems). However, it'll work fine during regular gameplay - even in non-campaign mods.

Offline Mularac

  • Lieutenant
  • ***
  • Posts: 531
  • Karma: 11
    • View Profile
(No subject)
« Reply #2 on: December 22, 2009, 02:34:56 »
Interesting... gonna check it out now, thanks.