Forum

> > CS2D > Scripts > How can creat any new npc?
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch How can creat any new npc?

4 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

verschoben How can creat any new npc?

gunfire
User Off Offline

Zitieren
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!

alt Re: How can creat any new npc?

dENd
User Off Offline

Zitieren
user gunfire hat geschrieben
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!


you cant

you can only edit the sprites/images of them in the gfx folder

alt Re: How can creat any new npc?

Apache uwu
User Off Offline

Zitieren
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.
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht