Ent Copying
I made a plugin that should allow me to copy an ent (at least i think so)
Code:
the problem is it copies everything but the fact that the ent in the world (i can't move it around, also made, and u can walk through it). Anyone know the problem? |
there's like 100 vars that entities have, so undoubtedly you're missing some - also for some entities they may need to have DispatchKeys set and all entities should be DispatchSpawn'd after creation
|
yeah i know, its so many, i created a plugin to output the vars of a box and found that func_walls (pretty much anything u'd want to copy) have basically the same stuff. (spawnflags may or may not have). I used this output and the output of a created ent, compared all the values. Every var that should have a value had one.
i will figure out the DispatchKeyValue, thx |
i did it
i'm not sure if dispatchspawn helped (leaving it in there anyway), but the problem was pContainingEntity. I started commenting out parts to see what was not needed and as soon as i commented it out it began to work. I'm sure some people have plugins for moving ents and stuff, but if anyone this plugin to move and copy ents(i couldn't find another ent moving/copying in the plguins forum), reply to this and i will work on the plugin a bit and post it in the plugins forum, since i must be the only one here without a plugin posted. |
*raises hand*
I'd like to see a working version. :) |
| All times are GMT -4. The time now is 14:45. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.