Raised This Month: $ Target: $400
 0% 

Spawning NPC Ents


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
awpticaL
Member
Join Date: Jul 2004
Location: EAST US
Old 05-14-2007 , 07:00   Spawning NPC Ents
Reply With Quote #1

I've edited, changed and added to many plugins in the past, but when it comes to creating my own, I'm completely friggin scrub. I figured it was time to start learning, 'cause there isn't any other way of getting what I need out of quick-editing other plugins.

So anyway, I'm trying to spawn Solid NPC's that do nothing besides their idle animation. Here's what I have so far:

Code:
/* Plugin generated by AMXX-Studio */ #include <amxmodx> #include <amxmisc> #include <engine> #define PLUGIN "NPC's" #define VERSION "1.0" #define AUTHOR "nub coder lawl" public plugin_init() {     register_plugin(PLUGIN, VERSION, AUTHOR) } public fakenpc1(id) {     new ent = create_entity("ts_model")     entity_set_string(ent, EV_SZ_classname, "fakenpc1")     entity_set_model(ent, "models/mecklenburg/refr2.mdl")     new Float:Vec[3] = {-2376.0, 1219.0, -411.0}     entity_set_origin(ent, Vec)     entity_set_int(ent, EV_INT_solid, 1)     entity_set_int(ent, EV_INT_movetype, 6) }

Now of course, something is seriously wrong with this, cause it didn't work.
I was going to use Fakemeta, but since it is my first plugin, I went with Engine for now.

I'm trying to get the basics down before I move anywhere else.



Also, if anyone could post any other tutorials/helpful info that isn't in the stickies and whatnot, that'd be great.

Thanks in advance
__________________
[img]http://img247.**************/img247/1166/userbar414943lj2.gif[/img]
[img]http://img116.**************/img116/527/ownage39ch.jpg[/img]
awpticaL is offline
Send a message via AIM to awpticaL Send a message via MSN to awpticaL
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 10:37.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode