mirror of
https://github.com/IntQuant/noita_entangled_worlds.git
synced 2025-10-19 07:03:16 +00:00
cull karl
This commit is contained in:
parent
9e56a7eae4
commit
f279c1c4fa
1 changed files with 5 additions and 2 deletions
|
@ -19,8 +19,11 @@ function rpc.send_karl(x, y, vx, vy, t, jet)
|
|||
for _, entity in ipairs(EntityGetWithTag("racing_cart")) do
|
||||
local com = EntityGetFirstComponentIncludingDisabled(entity, "VariableStorageComponent", "ew_karl")
|
||||
if ComponentGetValue2(com, "value_string") == ctx.rpc_peer_id then
|
||||
if players_karl ~= nil then
|
||||
EntityKill(entity)
|
||||
else
|
||||
players_karl = entity
|
||||
break
|
||||
end
|
||||
end
|
||||
end
|
||||
if players_karl == nil then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue