mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-28 12:58:00 +03:00
add overwriteLighting a toggle option for addVfx
This commit is contained in:
parent
63b8e636f3
commit
5cb6da4b02
15 changed files with 63 additions and 38 deletions
|
@ -227,8 +227,9 @@
|
|||
-- * `loop` - boolean, if true the effect will loop until removed (default: 0).
|
||||
-- * `boneName` - name of the bone to attach the vfx to. (default: "")
|
||||
-- * `particleTextureOverride` - name of the particle texture to use. (default: "")
|
||||
-- * `vfxId` - a string ID that can be used to remove the effect later, using #removeVfx, and to avoid duplicate effects. The default value of "" can have duplicates. To avoid interaction with the engine, use unique identifiers unrelated to magic effect IDs. The engine uses this identifier to add and remove magic effects based on what effects are active on the actor. If this is set equal to the @{openmw.core#MagicEffectId} identifier of the magic effect being added, for example core.magic.EFFECT_TYPE.FireDamage, then the engine will remove it once the fire damage effect on the actor reaches 0. (Default: "").
|
||||
--
|
||||
-- * `vfxId` - a string ID that can be used to remove the effect later, using #removeVfx, and to avoid duplicate effects. The default value of "" can have duplicates. To avoid interaction with the engine, use unique identifiers unrelated to magic effect IDs. The engine uses this identifier to add and remove magic effects based on what effects are active on the actor. If this is set equal to the @{openmw.core#MagicEffectId} identifier of the magic effect being added, for example core.magic.EFFECT_TYPE.FireDamage, then the engine will remove it once the fire damage effect on the actor reaches 0. (Default: "").
|
||||
-- * `useAmbientLighting` - boolean, vfx get a white ambient light attached in Morrowind. If false don't attach this. (default: 1)
|
||||
--
|
||||
-- @usage local mgef = core.magic.effects.records[myEffectName]
|
||||
-- anim.addVfx(self, 'VFX_Hands', {boneName = 'Bip01 L Hand', particleTextureOverride = mgef.particle, loop = mgef.continuousVfx, vfxId = mgef.id..'_myuniquenamehere'})
|
||||
-- -- later:
|
||||
|
|
|
@ -193,6 +193,7 @@
|
|||
-- * `mwMagicVfx` - Boolean that if true causes the textureOverride parameter to only affect nodes with the Nif::RC_NiTexturingProperty property set. (default: true).
|
||||
-- * `particleTextureOverride` - Name of a particle texture that should override this effect's default texture. (default: "")
|
||||
-- * `scale` - A number that scales the size of the vfx (Default: 1)
|
||||
-- * `useAmbientLighting` - boolean, vfx get a white ambient light attached in Morrowind. If false don't attach this. (default: 1)
|
||||
--
|
||||
-- @usage -- Spawn a sanctuary effect near the player
|
||||
-- local effect = core.magic.effects.records[core.magic.EFFECT_TYPE.Sanctuary]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue