npc follow ? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: npc follow ? (
/showthread.php?tid=159368)
npc follow ? -
Kitten - 13.07.2010
Solved
Re: npc follow ? -
robert4049 - 13.07.2010
You cant cause the npc is a recorded file.
Re: npc follow ? -
Kar - 13.07.2010
its possible.
Re: npc follow ? -
Kitten - 13.07.2010
Solved
Re: npc follow ? -
Kar - 13.07.2010
idk? but i've seen it!?! 你他妈的白痴
Re: npc follow ? -
Kitten - 13.07.2010
Solved
Re: npc follow ? -
GaGlets(R) - 13.07.2010
y.. its possible..
replace npcmodes script with this, dont need recording file..
pawn Код:
// NPC is blank, cause if he moves, everything goes wrong.
#include <a_npc>
//------------------------------------------
main(){}
//------------------------------------------
//------------------------------------------
public OnRecordingPlaybackEnd()
{
}
//------------------------------------------
public OnNPCSpawn()
{
}
//------------------------------------------
public OnNPCExitVehicle()
{
}
//------------------------------------------
on you script or in NPC filterscript add timer for player
if player says npc,followme
then start timer for that player
in that timer get players id
pawn Код:
new npcid = GetPlayersID("npcname");
//put WALK anim for npcid witch we got
//SetPlayerFacingAngle......
Maybe some function is incorrect