How can creat any new npc?gunfire User Offline 25.07.11 09:14:51 am How can creat any new npc? please tell me,i want to creat some new npcs! like machinegunman and ghost? i need the Detailed lesson!
Re: How can creat any new npc?palomino User Offline 25.07.11 09:42:43 am THIS IS THE GERMAN FORUM FOR CHRIST SAKE! Post English stuff in the English forum!
Re: How can creat any new npc?dENd User Offline 25.07.11 12:06:52 pm gunfire has writtenHow can creat any new npc? please tell me,i want to creat some new npcs! like machinegunman and ghost? i need the Detailed lesson! you cant you can only edit the sprites/images of them in the gfx folder
Re: How can creat any new npc?Apache uwu User Offline 25.07.11 08:14:25 pm With lua only. Here are the hooks you will need. Hook_always---> for constant npc movement Hook_projectile---> to see if it was hurt You will need to make an image, then have the image tween_ at random or moving towards the closest player. If the player shoots back it will have a health counter from xmax to 0, once at zero you can add your own little effect for death. Weiwen does an excellent job of implementing that in his RPG mod. Here it is if you want to learn from it. clicky.