[Tutorial] Add NPCs | Record NPC Paths | Play Animations
#1

[ame=www.youtube.com/watch?v=EeS-FbfAhi8]Click here for the tutorial[/ame]

Script Used:
Code:
#include <a_npc>
#define rec "npc_walking"
#define onfoot 2
 
main(){}
 
public OnRecordingPlaybackEnd() StartRecordingPlayback(onfoot,rec);
public OnNPCSpawn()
{
 SetMyPos(1521.5752,-1668.3490,13.5469);
 StartRecordingPlayback(onfoot,rec);
}
public OnPlayerStreamIn(playerid)
{
 SetTimer("SendCmd",3000,true);
}
 
forward SendCmd();
public SendCmd()
{
 SendCommand("/anim");
 return 1;
}[/cpp]
[cpp title="tutorial.pwn"]
// OnPlayerText
if(strcmp(cmdtext,"/anim",true)==0)
{
 ApplyAnimation(playerid,"ped","FALL_collapse",4.0,0,0,0,0,0);
 return 1;
}
 
// OnGameModeInit
ConnectNPC("Dave","npc_walk");
Reply
#2

How is this a tutorial in any way? You do not explain ANYTHING. Not even one piece of code. This tutorial sucks.
Reply
#3

Quote:
Originally Posted by Max_Coldheart
View Post
How is this a tutorial in any way? You do not explain ANYTHING. Not even one piece of code. This tutorial sucks.
+1 Yeah this tutorial suck you didnt explain anything...
Reply
#4

If you don't like it, then gtfo the thread?
Reply
#5

this is not a Chit chat topic, tutorials are made to teach people How-to create it, not:

a little thing here:
a little thingy there:
and add some things here:

otherwise it should be posted in the filterscripts thread, also regarding the "gtfo" thingy, this is a free forum, everyone is allowed to post anywhere/everywhere/anytime they want, as far as it doesn't breach the rules
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)