Nexus Modding > Scripting
[Answered] Celestials
(1/1)
Mularac:
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...
Arparso:
You can get the celestial object using uget(name):
--- Code: ---Uget("Earth"):uPlanetSurfBattle(1);
--- End code ---
or also
--- Code: ---myEarthVariable := Uget("Earth");
myEarthVariable:uPlanetSurfBattle(1);
--- End code ---
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.
Mularac:
Interesting... gonna check it out now, thanks.
Navigation
[0] Message Index
Go to full version