[REQUEST/HELP] Asteroid : Yields, Silicon and Spin

The place to discuss scripting and game modifications for X4: Foundations.

Moderators: Moderators for English X Forum, Scripting / Modding Moderators

Post Reply
User avatar
Moonrat
Posts: 1353
Joined: Sun, 20. Apr 08, 16:20
x4

[REQUEST/HELP] Asteroid : Yields, Silicon and Spin

Post by Moonrat » Sun, 15. Sep 19, 10:59

Making good progress on the next version of my Encounters mod but I have a question relating to asteroids.

I can create an asteroid OK (via "create_object"), it's position and set it's "damage", pitch/yaw/roll as well, but was wondering if anyone knows the following...
  • How do I create a silicon asteroid, there doesn't appear to be a macro for this type ?
    How do I set the yield ?
    How do I make it spin ?
[ external image ]
IEX Download Statistics - LUVi / XRMi ( 3115 / 5415 )
X4 Crexit 324 ; X4 Encounters 3193 (STEAM Unique/Current 6341/3412)

h2odragon3
Posts: 22
Joined: Tue, 9. Apr 19, 15:43
x4

Re: [REQUEST/HELP] Asteroid : Yields, Silicon and Spin

Post by h2odragon3 » Sun, 15. Sep 19, 16:25

I think your questions may be answered in `libraries/region_definitions.xml`. Dunno if you can set spin with create_object. I think the 'ore' asteroid macros are also used for silicon, in region_definitions there's several places like this:

asteroid ref="env_ast_ore_xl_02_macro" lodrule="asteroidxl" densityfactor="0.04" rotation="360" rotationvariation="4" resources="silicon" resourcepercentage="100" yield="432" yieldvariation="0.32" replenishtime="150000" noisescale="50000" seed="42" minnoisevalue="0.75" maxnoisevalue="0.8"/

User avatar
Moonrat
Posts: 1353
Joined: Sun, 20. Apr 08, 16:20
x4

Re: [REQUEST/HELP] Asteroid : Yields, Silicon and Spin

Post by Moonrat » Sun, 15. Sep 19, 18:19

Yes I agree. I also think the "ore" asteroid macros are used for Silicon but I'm not sure how you convert them using something like "create_object". I also noticed the "rotation" in xml's such as the one quoted but these appear to be configuration type definitions for regions of space rather than individual objects?
[ external image ]
IEX Download Statistics - LUVi / XRMi ( 3115 / 5415 )
X4 Crexit 324 ; X4 Encounters 3193 (STEAM Unique/Current 6341/3412)

Post Reply

Return to “X4: Foundations - Scripts and Modding”