metalharbor
Member
I want to use lua to change a floor texture after checking the player's ring count. I'm guessing it's something like this.
However I don't know how to identify the sector to change the height. I assume that I need to use sector.tag somehow but I don't quite know how. I'm not sure if I'm using sector.floorpic right either.
Lua:
addHook("ThinkFrame", do
for player in players.iterate
if player.rings >= 10
sector.floorpic = GFZFLR02
end
end
end)
However I don't know how to identify the sector to change the height. I assume that I need to use sector.tag somehow but I don't quite know how. I'm not sure if I'm using sector.floorpic right either.