SenL Posted June 25, 2022 Share Posted June 25, 2022 Bush hat sets owner stategraph to "hide" and Snurtle Shell "shell_enter". However I'd like to make it so the player can move while being invisible. How can you do this? Thanks. Link to comment Share on other sites More sharing options...
Leonidas IV Posted June 26, 2022 Share Posted June 26, 2022 Visually, a GetPlayer:Hide() resolves (you need to hide the player shadow too, idk the code rn) To be untargettable, probably the code of the state shell enter and consequents must have something useful. Link to comment Share on other sites More sharing options...
SenL Posted June 26, 2022 Author Share Posted June 26, 2022 Thanks. I looked into SGwilson and it adds "notarget" tag. However this won't work if the enemies are already targetting you so you'd have to "droptargets" like in armor_slurtleshell.lua: Quote local pt = inst:GetPosition() local ents = TheSim:FindEntities(pt.x, pt.y, pt.z, 15) for k,v in pairs(ents) do if v.components.combat and v.components.combat.target and v.components.combat.target == owner then v.components.combat:SetTarget(nil) end end Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.
Please be aware that the content of this thread may be outdated and no longer applicable.