npc follow ?
#7

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
pawn Код:
settimerex
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
Reply


Messages In This Thread
npc follow ? - by Kitten - 13.07.2010, 04:20
Re: npc follow ? - by robert4049 - 13.07.2010, 04:21
Re: npc follow ? - by Kar - 13.07.2010, 04:26
Re: npc follow ? - by Kitten - 13.07.2010, 04:30
Re: npc follow ? - by Kar - 13.07.2010, 04:32
Re: npc follow ? - by Kitten - 13.07.2010, 07:00
Re: npc follow ? - by GaGlets(R) - 13.07.2010, 07:22

Forum Jump:


Users browsing this thread: 1 Guest(s)