SuperMarineWorld
Sumawu
I've been trying to make a lua script that applies the colorization effect to the player when transformed into another character via the SF_IRONMAN flag. No errors show up when the addon is loaded, but the colorization lua does not work properly. Are there any variables or factors that determine if the player is copying a random character? Please let me know.
Colorization.lua:
// Colorize Script
// This script can be used for whatever mod you're making (it's reusable after all)
addHook("ThinkFrame", do
for player in players.iterate
if not (player.mo and player.mo.skin == "tellware") then continue end
if player.pflags&SF_IRONMAN
player.mo.colorized = true
else
player.mo.colorized = false
end
end
end)