• How to get the origin/angles keyvalues of a prop I spawned?
    4 replies, posted
I created a prop_physics using ent_create and then put it somewhere and rotated it around with physgun, and now I need to get its origins and angles keyvalues for a thing I'm working on. I tried ent_dumping it but it doesn't update the origin or angles at all. Is there a way I can achieve this with LUA?
To get an entity's current position: ent:GetPos() To get an entity's current angles: ent:GetAngles() This has nothing to do with keyvalues. Is this what you were looking for?
I mean when you use Hammer and you make an entity, there are the keyvalues for origin and angles (which I need to get). Anyway those LUA commands helped, thanks
Try looking in the save table.
tried to link to this: Entity If it's not that, try also looking for it in here: Entity And if it doesn't show up there, check out the note on that page for other things to try.
Sorry, you need to Log In to post a reply to this thread.