Raised This Month: $12 Target: $400
 3% 

How To: Make a perfect NPC


Post New Thread Reply   
 
Thread Tools Display Modes
matsi
Thinkosaur
Join Date: Sep 2006
Old 01-13-2014 , 10:04   Re: How To: Make a perfect NPC
Reply With Quote #231

Quote:
Originally Posted by Ardonicek View Post
How to set it up to make it spawn every map on selected coords? O.o
Quote:
Originally Posted by MegasToRM View Post
Easy to do. Just write x,y,z coordinates in a file(cfg,txt,ini,any other extension you like...),and in plugin_init or plugin_cfg(or just before spawning npc) you can parse those values,and use them as coordinates for spawning an entity.
If you have issues with that you can check this topic.
__________________

Accepting all kinds of requests via private message.
matsi is offline
Old 01-23-2014, 16:38
Ardonicek
This message has been deleted by Ardonicek. Reason: Solved
Ardonicek
Senior Member
Join Date: Feb 2013
Location: My home
Old 02-26-2014 , 15:37   Re: How To: Make a perfect NPC
Reply With Quote #232

Guys, how to make that NPC follow players and trying to kill them? If it's possible, paste the code here, please.
__________________
Latest plugin: dHUD Round | Timeleft
Ardonicek is offline
Send a message via ICQ to Ardonicek Send a message via Skype™ to Ardonicek
RainePlayz1
Junior Member
Join Date: Mar 2022
Old 08-26-2022 , 08:46   Re: How To: Make a perfect NPC
Reply With Quote #233

How To Make Them Move Like Real Player?
Please Complete The Plugin In The Top
For Bots

Last edited by RainePlayz1; 08-26-2022 at 08:50. Reason: It Sucks
RainePlayz1 is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 08-26-2022 , 11:47   Re: How To: Make a perfect NPC
Reply With Quote #234

Read the tutorial. It says:
"Making a bot, or an NPC that can move easily and takes up a slot, is as simple as 1 2 3.

1. Follow the guide above
2. replace "create_entity("info_target"" with engfunc(EngFunc_CreateFakeClient,"Onna")

3. Set the model of the new bot using the mod specific functions.

You can now:
Use the FM engfunc command, EngFunc_RunPlayerMove to make them move
Act as if they are a normal player."
__________________
HamletEagle is offline
Reply


Thread Tools
Display Modes

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 15:54.


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