Skittish Robot Posted December 19, 2018 Share Posted December 19, 2018 I would like to make a hat that will clear away the canopy overlay while the player is in the jungle. And I found the following code around line 520 in playerhud.lua: local player = GetPlayer() self.under_leaves = false local pos = GetPlayer():GetPosition() local ground = GetWorld() local tile = ground.Map:GetTileAtPoint(pos.x, 0, pos.z) for i,tiletype in ipairs(IS_CANOPY_TILE)do if tiletype == tile then self.under_leaves = true If I add and not player:HasTag("myhattag") to the "if" statement, it will work. So my question is, how do I package this code change into something like modmain.lua so I don't have to update playerhud.lua every time the game is updated? 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.