Forum

> > CS2D > Scripts > How to make NPC walk.
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch How to make NPC walk.

4 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt How to make NPC walk.

WiFi
User Off Offline

Zitieren
I want to make a map with walking NPCs.
I mean,NPC can walk from Point A to Point B.
It can be achieved?
sorry for my bad English.

alt Re: How to make NPC walk.

Baloon
GAME BANNED Off Offline

Zitieren
Of course it's possible.

I am not sure Env_NPC can do it, but there is another way to create walking NPC, use Env_Sprite instead. Use Trigger_Delay for triggering the images, also use any entity to trigger your Trigger_Delay. Just imagine how it works.

If you want walking- Env_NPCs, LUA can do it with always hook. In my way, this is quite hard, so use Env_Sprites and triggers instead LUA codes.

alt Re: How to make NPC walk.

sonkii
User Off Offline

Zitieren
Not possible.I think.

You mean CS2D normal npcs?no,you cant do it with lua.Use your own npc (image) and make the npc moves around.

On the other hand,CS2D npcs will moving if they spotted the player.You can use map editor tricks.

I am wrong or not?

alt Re: How to make NPC walk.

Rainoth
Moderator Off Offline

Zitieren
If you're a mapper, your best choice is using env_sprite and then move it. It won't be a smooth motion though.

If you can script, you can use image position to move a sprite you load with image and a time hook.

You could also script CS2D bots to walk to your point with ai_goto.

You cannot move env_npc entities though.
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht