Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/game/scripting/StarWorldLuaBindings.cpp
diff options
context:
space:
mode:
authorKae <80987908+Novaenia@users.noreply.github.com>2024-06-09 15:25:23 +1000
committerKae <80987908+Novaenia@users.noreply.github.com>2024-06-09 15:25:23 +1000
commitfc506003035c86914a2d18069871731696b2f173 (patch)
treea5aa32fffff5c750a518d174fdd283b057e4d1af /source/game/scripting/StarWorldLuaBindings.cpp
parent5a99d7b245934d0b609432efb6bf87c269cc07c2 (diff)
add Projectile::velocity
thanks to Bott for suggesting
Diffstat (limited to 'source/game/scripting/StarWorldLuaBindings.cpp')
-rw-r--r--source/game/scripting/StarWorldLuaBindings.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/game/scripting/StarWorldLuaBindings.cpp b/source/game/scripting/StarWorldLuaBindings.cpp
index ba4322d..08a7a43 100644
--- a/source/game/scripting/StarWorldLuaBindings.cpp
+++ b/source/game/scripting/StarWorldLuaBindings.cpp
@@ -1361,6 +1361,8 @@ namespace LuaBindings {
return playerEntity->velocity();
else if (auto vehicleEntity = as<Vehicle>(entity))
return vehicleEntity->velocity();
+ else if (auto projectileEntity = as<Projectile>(entity))
+ return projectileEntity->velocity();
return {};
}