Entity Problems, once again...
Is it possible that the first time you test something it never works?
Well, the time has come again. Code:
This should do nothing more than spawn an uziakimbo with spawnflags set to 1024 at the Players origin. But actually it does nothing - why? |
Re: Entity Problems, once again...
Well you can't use pev() for everything.
You should use this for origin and model: Code:
engfunc(EngFunc_SetModel, entid, "chicken") |
Re: Entity Problems, once again...
You might also have to call DispatchSpawn.
|
Re: Entity Problems, once again...
Quote:
However with fakemeta use: Code:
|
Re: Entity Problems, once again...
Quote:
Code:
g_SNentity = engfunc(EngFunc_CreateNamedEntity, engfunc(EngFunc_AllocString, "info_target"));Should i use this dllfunc too? Code:
dllfunc(DLLFunc_Spawn, g_SNentity);weird! :) greetz regalis |
Re: Entity Problems, once again...
@regalis
Code:
@Silencer123 If i'm right, you need to use the function. As Avalanche said, because you're modifying an already 'made' entity. (I assume this is for SvenCoop) |
Re: Entity Problems, once again...
Quote:
But as far as i know myself, there are plenty...i only wait till VEN inspects my Plugin :oops: He always find some flaws..0o Thanks for the explanation! I go now sleeping*lol* greetz regalis |
Re: Entity Problems, once again...
Okay, does that dllfunc come right behind the
EngFunc_CreateNamedEntity line one or at the end of all changes made? EDIT: Just reading your words more carefully and finding out I have to do that before I set something. |
Re: Entity Problems, once again...
It's necessary to spawn an entity in two cases. When you want to apply all previously fired to that entity keyvalue data and when you want it to take all of the native properties of its classname. So for example if you'd going to spawn func_buyzone entity you do not have to care about configuration of its solidity and visibility.
|
Re: Entity Problems, once again...
Okay... Now where I am looking for an alternative for pev I arrived at this point:
Code:
Or do I have to make a new uberfat string to store long word clusters? *confused* |
| All times are GMT -4. The time now is 06:46. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.