Setup for crash repro

This commit is contained in:
IQuant 2024-06-01 15:13:52 +03:00
parent 3374c2f67d
commit ff394e6971

View file

@ -169,7 +169,10 @@ function OnPlayerSpawned( player_entity ) -- This runs when player entity has be
ComponentSetValue2(item_pick, "is_immune_to_kicks", true) ComponentSetValue2(item_pick, "is_immune_to_kicks", true)
if ctx.debug then if ctx.debug then
-- ~Portal to lab
-- EntitySetTransform(player_entity, 0, 12600) -- EntitySetTransform(player_entity, 0, 12600)
EntitySetTransform(player_entity, 0, 8600-20)
util.set_ent_health(player_entity, {1000, 1000}) util.set_ent_health(player_entity, {1000, 1000})
local wallet = EntityGetFirstComponentIncludingDisabled(player_entity, "WalletComponent") local wallet = EntityGetFirstComponentIncludingDisabled(player_entity, "WalletComponent")
ComponentSetValue2(wallet, "money", 100000) ComponentSetValue2(wallet, "money", 100000)