Sky The Destroyer
Member
First thing: I am trying to set an ability when the player has the Force shield, but it only sets it after I get hit once.
Script:
Wolfy suggested to specify the lower 8 bits of the shield or something, but I have no clue how to do that.
Second question: what's the difference between player.health and player.mo.health? Do I need to list both, or do they reference the same thing?
Script:
Code:
addHook("ThinkFrame", do
for player in players.iterate
if player.powers[pw_shield]==SH_FORCE
player.charability = CA_TELEKINESIS
elseif player.powers[pw_shield]!=SH_FORCE
player.charability = skins[player.mo.skin].ability
end
end
end)
Second question: what's the difference between player.health and player.mo.health? Do I need to list both, or do they reference the same thing?
Last edited: