• Magnets bug
    2 replies, posted
I think there is a bug with magnets. The table of any entity in the game returns the entity in the variable Entity. However, the table of a magnet does not hold a variable Entity and there is no way to call the entity from its table. This seems like something that needs to be fixed. Or atleast needs to be fixed for me because it is causing some problems.
You could do this whenever a magnet is created in [b][url=wiki.garrysmod.com/?title=Gamemode.OnEntityCreated]Gamemode.OnEntityCreated [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]. [lua]magnet.Entity = magnet;[/lua]
Yeah I thought about that, but then I looked at the magnetise tool and I think it really does need to be updated. I mean if you make a prop a magnet all of the constraints get removed. It seems like it was left unfinished.
Sorry, you need to Log In to post a reply to this thread.