If you mean change the value like a chip is outputting it is not possible, using E2's it's simple to use override functions.
if (This==That) {A=B, C=D...}
I would like to see some kind of device that gets every variable written in the code of a wire or non wire object and be able to override it with a value of your choice. I have no idea if this would work but I would love if it did as the applications are enormous. If this is possible or if you think it is a good idea please tell me.![]()
If you mean change the value like a chip is outputting it is not possible, using E2's it's simple to use override functions.
if (This==That) {A=B, C=D...}
he said non-wire entities.
there is no useful application for what you proposed, fliecheese.
those variables are internal and change from version to version.
if you want to "hax" into an entity, use Lua.
"It's easy to win forgiveness for being wrong; being right is what gets you into real trouble." - Bjarne Stroustrup
Lífið læðist lúmskt áfram
Yeah but you cannot do that in game or multiplayer. I thought that it would not work but I thought it would be interesting to see what could be done with it.
That used to have a purpose before wire, maybe even before Gmod 10, and people used to wish for that, but now the source entities are rather dull compared to what we can have with existing tools and sents.
A few fancy things can be done when you know what variables an entity has, but I'm afraid today noone of the able scripters would bother to work on it.
use the "lua_run" console command to execute lua code in-game.
use "lua_openscript" for longer stuff
append "_cl" to those commands for the client-side version. those should also work in multiplayer.
"It's easy to win forgiveness for being wrong; being right is what gets you into real trouble." - Bjarne Stroustrup
Lífið læðist lúmskt áfram
I coded up a quick entity table printer for my own use a long time ago, but I suppose it might be useful. It just prints the entity table to the console. I find it useful for debugging. It's in addon format.
Jeremydeath's Wire Addons - Try Them... NOW!
PrintTable(ent:GetTable())?
oh, as a tool. neat
needs a restriction to (super)admins![]()
"It's easy to win forgiveness for being wrong; being right is what gets you into real trouble." - Bjarne Stroustrup
Lífið læðist lúmskt áfram
Yeah, pretty much. I just use it to do things like check what kind of information entities had about other entities (like who spawned it). I never really meant to release it, but some might find it useful.
Jeremydeath's Wire Addons - Try Them... NOW!
Bookmarks