fix karl checkpoints maybe

This commit is contained in:
bgkillas 2024-09-22 14:25:13 -04:00
parent 9827a43ec0
commit 3575ccc658

View file

@ -37,7 +37,8 @@ function rpc.send_karl(x, y, vx, vy, t, jet)
for _, com in ipairs(EntityGetComponent(players_karl, "LuaComponent")) do
if ComponentGetValue2(com, "script_source_file") == "data/scripts/buildings/racing_cart_move.lua" then
EntityRemoveComponent(players_karl, com)
break
elseif ComponentGetValue2(com, "script_collision_trigger_hit") == "data/scripts/buildings/racing_cart_checkpoint.lua" then
EntityRemoveComponent(players_karl, com)
end
end
else