Copy and paste ents
This function:
Code:
Code:
|
Re: Copy and paste ents
Code:
if( ! g_hascopied ) |
Re: Copy and paste ents
What is wrong now (just updated the post) ?
|
Re: Copy and paste ents
you should build in more debug messages...
and tell us which line the error exists...(the error message is truncated..) Maybe here is a problem: Code:
new ent = engfunc( EngFunc_CreateEntity, engfunc( EngFunc_AllocString, "func_wall" ) );Code:
ent = engfunc(EngFunc_CreateNamedEntity, engfunc(EngFunc_AllocString, "info_target")); |
Re: Copy and paste ents
Yea regalis Is right.
But you can leave it as a func_wall. It needs to be createNAMEDentity not just createentity.. |
Re: Copy and paste ents
Thank you for your help.
EDIT: Another problem, now it says "Ent succefully pasted", but nothing happens. The ent doesn't spawn. |
Re: Copy and paste ents
Sorry i was very tired yesterday...
I just read that you want to spawn a func_wall... AFAIK you have to do that in plugin_precache.. And also you have to set_kvd for that entity because it is a brushbased entity...please correct me if im wrong! greetz regalis PS: something like this..don't know exactly..maybe play a little with it.. Code:
public precache_ent() |
Re: Copy and paste ents
I took the creating of entities from SAMURAI16's Pallets with bags plugin. It works for him...
|
| All times are GMT -4. The time now is 10:44. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.