Projectile proxy (self.projectile)¶
Bound on script tables as self.projectile. Only these members are available; unknown names are rejected.
Source: Utils/Lua/LuaProjectileApi.cs.
Properties¶
| Name | Type / signature | Notes |
|---|---|---|
BaseSpriteVisible |
Boolean BaseSpriteVisible |
|
IsDead |
Boolean IsDead |
|
LifeTime |
int LifeTime |
|
MaxLifeTime |
int MaxLifeTime |
|
Owner |
object Owner |
Allowlisted view of the entity that fired or owns this projectile. Never a raw production object. |
Pos |
Vector2 Pos |
|
VelX |
float VelX |
|
VelY |
float VelY |
Methods¶
| Signature | Notes |
|---|---|
void DealDamage(object target, float piercePercent) |
|
Boolean HasTag(String tag) |
|
Boolean IsProjectileSettled() |
|
void LoadSoundEffect(String label, String path) |
|
void PlaySoundEffect(String label, float volume = 1, float pitch = 0) |
|
void TriggerContinuousPFX(String key, float offsetX = 0, float offsetY = 0) |
|
void TriggerOneShotPFX(String key) |
Generated 2026-08-14T18:38:10.4882241Z · b67bc26a · 15 members.