Skip to content

Commit ee363d7

Browse files
authored
add AddEffectGeneratorToLevel to lua files (#4411)
1 parent bb4fb83 commit ee363d7

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

config/fxdata/lua/bindings/effects.lua

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,11 @@ function CreateEffectAtCoords(effect,val_x,val_y,val_z) local ef return ef end
3131
---@param distance integer How far apart the effects forming the line are. Where 24 spawns effects a single slab apart
3232
---@param speed integer The delay between effects. The number represents 'number of effects per 4 game turns', set it to '2' to spawn 10 effects per second. Use 0 to spawn all effects at once. Max value is 127.
3333
---@param effect effect_or_effelem_type The effect to spawn. Can be any effect or effect element that is in game, like the hearts that appear when healing, or the red smoke when claiming a room. Also accepts the names as provided in effects.toml
34-
function CreateEffectsLine(origin,destination,curvature,distance, speed, effect) end
34+
function CreateEffectsLine(origin,destination,curvature,distance, speed, effect) end
35+
36+
37+
---Place any Effect Generator at a specific place on the map.
38+
---@param effect_generator effect_generator_type The effect generator name from effects.toml.
39+
---@param location location The location you want the generator to spawn.
40+
---@param range integer The range within which the generator will spawn effects.
41+
function AddEffectGeneratorToLevel(effect_generator,location,range) end

0 commit comments

Comments
 (0)