Skip to content

Instantly share code, notes, and snippets.

@Nosrick Nosrick/player.lua
Created Aug 14, 2016

Embed
What would you like to do?
if entity.is_player then
if entity:is_player() then
print("Looking for player name")
effects = playereffects.get_player_effects(entity:get_player_name())
else
print("Looking for GUID")
effects = playereffects.get_player_effects(entity.GUID)
end
else
print("Looking for GUID")
effects = playereffects.get_player_effects(entity.GUID)
end
@rubenwardy

This comment has been minimized.

Copy link

rubenwardy commented Aug 14, 2016

if not entity.get_player_name then
   print("no get player name")
end
if not entity.getpos then
   print("no get pos")
end
if entity.is_player then
    print("Looking for player name")
    effects = playereffects.get_player_effects(entity:get_player_name())
else
    print("Looking for GUID")
    effects = playereffects.get_player_effects(entity.GUID)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.