Nexus Skirmisher

Nexus Modding => Scripting => Topic started by: Mularac on December 21, 2009, 22:51:39

Title: [Answered] Celestials
Post by: Mularac 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...
Title:
Post by: Arparso 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.
Title:
Post by: Mularac on December 22, 2009, 02:34:56
Interesting... gonna check it out now, thanks.