Space Engineers

Space Engineers

No hay suficientes valoraciones
Custom Emissive Example
   
Premio
Favoritos
Favorito
Quitar
Type: Mod
Mod category: Block, Script
Tamaño
Publicado el
Actualizado el
1.506 MB
7 ABR 2016 a las 10:07 a. m.
24 OCT 2016 a las 8:03 p. m.
3 notas sobre cambios ( ver )

Suscríbete para descargar
Custom Emissive Example

Descripción
This is an example of how to use the new custom emissives in SE 01.129.
For more details, see: http://forums.keenswh.com/threads/custom-entity-emissives.7382350/

To use emissives:
1) Model as usual in any editor, and create emissive textures with any name you want (You can use Emissive, Emissive0, etc... if you want, but you don't have to).
2) In ModAPI, call IMyEntity.SetEmissiveParts("NameOfEmissiveTexture", Color, brightness);

This also works with stock emissives! It also works with everything! Blocks, floating entities, and should work for weapons and the character too!

Code doc:
void SetEmissiveParts(string emissiveName, VRageMath.Color emissivePartColor, float emissivity)
Member of VRage.ModAPI.IMyEntity

Summary:
Sets the emissive value of a specific emissive material on entity.

Parameters:
emissiveName: The name of the emissive material (ie. "Emissive0")
emissivity: Level of emissivity (0 is off, 1 is full brightness)
emissivePartColor: Color to emit
7 comentarios
KitsuneKas 16 ABR 2016 a las 11:11 p. m. 
Nice. Good to hear. Dunno if that helps, seeing as I'm not a modder myself, but I do make a point of trying to understand what is and isn't possible before I go to mod authors whining about "moar lazors plox" and so forth.

Gwindalmir  [autor] 16 ABR 2016 a las 9:19 p. m. 
@KitsuneSamurai, Assuming the conveyor system is allowed in the ModAPI, yes.
KitsuneKas 16 ABR 2016 a las 7:59 p. m. 
Does this finally allow for things like lights on conveyors, for all the conveyor expansions out there that use the conveyor blocks and therefore don't have lights like the tubes?
Mage4 11 ABR 2016 a las 6:36 p. m. 
nice
DonCDXX 8 ABR 2016 a las 9:43 a. m. 
Thank you. I just started researching how to do this yesterday. What perfect luck.
Gwindalmir  [autor] 8 ABR 2016 a las 9:37 a. m. 
I wrote it.
Alden Badham 8 ABR 2016 a las 7:20 a. m. 
Thanks Phoenix for this discover ! Now we can use it to change texture with scripting. How did you find it ?