Moving a NPC
#1

How could i script, that a NPC is moving to me, when i got a specific distance?

So far the only thing i could figure out so far, is to use "SetPlayerPos" but that looks so akward. Is there other suggestions how to create something like that?
Reply
#2

Quote:
Originally Posted by Blunt P
Посмотреть сообщение
How could i script, that a NPC is moving to me, when i got a specific distance?

So far the only thing i could figure out so far, is to use "SetPlayerPos" but that looks so akward. Is there other suggestions how to create something like that?
there are some NPCs in gl mode, they are using some script to move when you load them, but I have no idea how to do that script or even how to modify it
Reply
#3

Quote:
Originally Posted by SEnergy
Посмотреть сообщение
there are some NPCs in gl mode, they are using some script to move when you load them, but I have no idea how to do that script or even how to modify it
Those are recoirdings which has been made, which means, that they wont change their route. You record your movements, when you play those, then your not able to change them.

Im looking for a way to make their movement dynamic.
Reply
#4

well, then record movements all around the SA map and do a random() to get random path ... also how to record that moving so I can do my own NPC? is there any tutorial on that?
Reply
#5

Quote:
Originally Posted by SEnergy
Посмотреть сообщение
well, then record movements all around the SA map and do a random() to get random path ... also how to record that moving so I can do my own NPC? is there any tutorial on that?
i dont want something random, i want a NPC which runs to you. Like a NPC which is following you D: like a stalker *.*
Reply
#6

Quote:
Originally Posted by Blunt P
Посмотреть сообщение
i dont want something random, i want a NPC which runs to you. Like a NPC which is following you D: like a stalker *.*
Not possible unless you use SetMyPos on a very fast timer.
The NPC's in Samp are following a premade path and dont have A.I
Reply
#7

Quote:
Originally Posted by Blunt P
Посмотреть сообщение
i dont want something random, i want a NPC which runs to you. Like a NPC which is following you D: like a stalker *.*
well give me some example on how to map that movement and I'll try to figure something out
Reply
#8

However you can use this plugin to create dynamic npc easily using path nodes.

Source: https://sampforum.blast.hk/showthread.php?tid=355849

You can also view this example on how to use that plugin.

Source: https://sampforum.blast.hk/showthread.php?tid=358655
Reply
#9

Quote:
Originally Posted by Arca
Посмотреть сообщение
However you can use this plugin to create dynamic npc easily using path nodes.

Source: https://sampforum.blast.hk/showthread.php?tid=355849

You can also view this example on how to use that plugin.

Source: https://sampforum.blast.hk/showthread.php?tid=358655
Thanks alot! This is what i have been looking for
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)