Bearger Fx
Based on game build 714014 | Last updated: 2026-03-20
Overview
bearger_fx is a prefab factory script that generates visual effect entities for Bearger attacks. It configures animation states, lighting, and network replication for specific swipe effects. The resulting entities are designed to be transient, automatically removing themselves after their animation cycle completes.
Usage example
-- Spawn the standard Bearger swipe effect
local fx = SpawnPrefab("bearger_swipe_fx")
fx.Transform:SetPosition(x, y, z)
-- Trigger the reverse animation manually if needed
if fx.Reverse then
fx.Reverse()
end
Dependencies & tags
Components used: Transform, AnimState, Network
Tags: Adds FX, NOCLICK
Properties
| Property | Type | Default Value | Description |
|---|---|---|---|
persists | boolean | false | Prevents the entity from being saved in the world state. |
Reverse | function | nil | Custom method assigned on server to play the reverse animation. |
Main functions
Reverse()
- Description: Plays the
atk2animation on the entity'sAnimState. This function is only assigned on the master simulation. - Parameters: None.
- Returns: Nothing.
- Error states: Only exists if
TheWorld.ismastersimistrue.
Events & listeners
- Listens to:
animover- Triggersinst.Removeto clean up the entity when the animation finishes.