SphereCommunity
NPC movement - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: Script Help (/Forum-Script-Help)
+--- Thread: NPC movement (/Thread-NPC-movement)



NPC movement - Sekvent - 05-21-2012 02:44 AM

Hello,

I am new to all this. But I have a specific question:

How do I make NPCs stay at the tile where their spawn point is. Should be some kind of freeze @create flag or something?

I want to put it directly into the NPC script. Version 56b.


RE: NPC movement - Reflex - 05-21-2012 02:55 AM

If you're using axis just put max distance to 1 or if you're not using axis you will have to set that manually when adding the spawn of course ;p


RE: NPC movement - Sekvent - 05-21-2012 03:20 AM

I set max distance to 1 and the NPC wanders around a lot!


RE: NPC movement - RanXerox - 05-21-2012 03:25 AM

After changing something like distance you may need to respawn it?


RE: NPC movement - Sekvent - 05-21-2012 03:29 AM

I tried. He walks around like crazy anyways. I was wandering if I could just add a parameter to the npc script that would just freeze it (like there is flag 04 for frozen with axis)


RE: NPC movement - WRWR - 05-21-2012 05:01 AM

just remove mt_walk flag


RE: NPC movement - Sekvent - 05-21-2012 05:30 AM

HAHA found it!

you can add to any npc the following:

CAN=MT_NONMOVER

I found it in sphere definitions file.