Creating Entity Help(Searched none work.)
Okay first of all here is the code I am using.
Code:
// ****************************************************************** |
hmm not sure but first of all
Code:
^wtf is that i know thats in C++ but not in small, its not even in the include folder Code:
some pro correct me if im wrong, but u dont need the (id) in there |
www.amxmodx.org/funcwiki.php
The core told me that there is such a thing called string.inc in the core >.< |
You don't need to include it.
|
Perhaps your problem is you havent given it a think (I dunno, i've never really done one without a think). Look up register_think() and entity_set_float(entid, EV_FL_nextthink, ... etc.)
Have a look at Twilight's guide to making an NPC if you don't know what i'm on about. Search "How to: make the perfect NPC". |
This might give you an idea, it's sorta the same thing for creating the initial model, I wish I still had my code from my "clone" stuff...
http://forums.alliedmods.net/showthread.php?t=7553 |
Loooooooooolll o0
Why dont u guys see the problem, and I do? o0 Here, this is the summon code for teh little brat which I want to sqeeze with mine leg ( read : SPIDER ). Code:
And, btw, if you use so called "avatar" system, which takes bones&animations of current player model ( avatar system works so it places a model over the current model, which acts like current model ), I think maybe ur bones are incorrect. Well, test the code, and lemme know if it doesn't compiles/runs well ingame/etc. |
Ahhhh I see now. He created a 'summoned_spider' entity, rather than an 'info_target'. *slaps forehead*
|
Quote:
And one more thing - now he can remove that entity due to array ^^ If it was done his way of creating ,he couldnt remove it since it went out of scope :p |
Wait... Isn't yours going to go outta array?
You've got it at [32], but all the settings are added to [id] rather than [id-1] :O |
| All times are GMT -4. The time now is 16:49. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.