Effect components
EntSlotComponent and EntEffectSpawnerComponent
Last updated
EntSlotComponent and EntEffectSpawnerComponent
Last updated
Published: Feb 09 2024 by manavortex Last documented edit: Mar 4 2024 by
This page will tell you how effect components work and how they interact with each other.
For an overview on existing effect materials, check FX Material Properties
For a guide on how to use effects, check AMM: Light Components
You will see two kinds of effect component types, which always occur in pairs.
Usually called fx_slots
, this component allows you to place your effects in the world. It requires the definitions in the entEffectSpawnerComponent to work.
If you want the position of your effects to follow the movement of parts of the object you can set the boneName
an existing bone of your object
In this case the relativePosition
will be relative to the bone's position
Usually called fx_whateverTheEffectIs
, this component defines and registers effects which can then be placed via slots.
In the entEffectSpawnerComponent
, delete:
the placementTag
entry that you want to get rid of
the corresponding entry in placementInfos
(see the yellow arrows on the screenshot under entEffectSpawnerComponent)
In the entSlotComponent
, delete:
The entry in slots
referencing the previously deleted component by name.
In the entEffectSpawnerComponent
, add:
a new placementTag
at the end of the array with the name of your new entry (e.g. fx_candle_slot_04
)
a new entry under placementInfos
(by duplicating the last entry), setting the placementTagIndex
to the numeric index of the placementTag
you created in step 1
In the entSlotComponent
, add:
a new entry in slots
with the name that you created in Step 1
If you are making effects into equipment, having the same autoSpawnTag will make it so equipping one will despawn the other one.
eventRUID in the ent component must be the same as the effect particles ruid, and ideally should be unique across everything. You can right click on a RUID field and choose "Generate new CRUID" to generate a semi-random new CRUID and then copy it across so they match.
Please check AMM: Light Components -> for a detailed guide!