Come on, doesn't anyone know how to do this? come on guys...
I've made a freeze() and unFreeze() function for E2, but i currently have to put the entity in the brackets. This looks weird and makes code look cluttered, so i was wondering if it's possible to make the functions work with the entity first (E:function()).
i've tried doing: "e2function void [entity Ent]:freeze()", but that didn't work.
I know.... use "entity:freeze()". The entity will have "this" as the variable name. Example:
Code:e2function void entity:freeze() Object = this:GetPhysicsObject() Object:EnableMotion(false) end
"If anybody says he can think about quantum physics without getting giddy, that only shows he has not understood the first thing about them."
-- Niels Bohr
Bookmarks