Quote from: MEGAMIND on Nov 10, 2024, 10:30 AMQuote from: [TDA]Speed on Nov 10, 2024, 09:30 AMi did it eventaully u can do it too, get the nearest player id from distanceotpoint and walk it there.. an example here it moves twoards the loaction of player where ever it is goingQuote from: vitovc on Nov 04, 2024, 06:44 PMit is possible but he wants you to code pathfinding for him xDmaybe we can make something more easliy then this like know the nearest pos of npc and walk to it
actually there is alot of AI-stuff can be done (and needed for DM-gamemods). I feel fear when I imagine how much work should be done to make npc to act like real players in terms of DM.
Quote from: MEGAMIND on Nov 10, 2024, 10:30 AMlool man thats awsome! nick workQuote from: [TDA]Speed on Nov 10, 2024, 09:30 AMi did it eventaully u can do it too, get the nearest player id from distanceotpoint and walk it there.. an example here it moves twoards the loaction of player where ever it is goingQuote from: vitovc on Nov 04, 2024, 06:44 PMit is possible but he wants you to code pathfinding for him xDmaybe we can make something more easliy then this like know the nearest pos of npc and walk to it
actually there is alot of AI-stuff can be done (and needed for DM-gamemods). I feel fear when I imagine how much work should be done to make npc to act like real players in terms of DM.
Quote from: [TDA]Speed on Nov 10, 2024, 09:30 AMi did it eventaully u can do it too, get the nearest player id from distanceotpoint and walk it there.. an example here it moves twoards the loaction of player where ever it is goingQuote from: vitovc on Nov 04, 2024, 06:44 PMit is possible but he wants you to code pathfinding for him xDmaybe we can make something more easliy then this like know the nearest pos of npc and walk to it
actually there is alot of AI-stuff can be done (and needed for DM-gamemods). I feel fear when I imagine how much work should be done to make npc to act like real players in terms of DM.
Quote from: vitovc on Nov 04, 2024, 06:44 PMit is possible but he wants you to code pathfinding for him xDmaybe we can make something more easliy then this like know the nearest pos of npc and walk to it
actually there is alot of AI-stuff can be done (and needed for DM-gamemods). I feel fear when I imagine how much work should be done to make npc to act like real players in terms of DM.
Quote from: habi2 on Nov 04, 2024, 05:05 PMHi [TDA]Speed, we can definitely think about making a path-finding npc. In fact from an IPL file, the path can be found. Ah yes, when given command to go to a location, it will walk through the road making left turn or right turn. it is possible now.i just knew that path finding maybe could be lag but i tried to understand the walking script code of yours what if player gets close exmple npc cop and wanted player if the wanted player near to npc he will start follow him like
Quote from: habi2 on Nov 09, 2024, 04:11 PMAbout crashing of server (i hope it is server that is crashing), when you use RFC repetitiously there might be some bug which i will look now.yes serverside.exe gets closed
Quote from: habi2 on Nov 09, 2024, 04:11 PMHi @MEGAMIND, i see your messages and will fix it one by one.why does it change skin? though i have a skin already in connectQuotenpc is dead how he gonna spawn back?, bcz i see a msg that i have spawned but not actully spawned, even though i get npc it says player not spawnedUse RequestSpawn to spawn the npc.when it is dead. It will spawn in the same class.function OnPlayerDeath(playerid)
About crashing of server (i hope it is server that is crashing), when you use RFC repetitiously there might be some bug which i will look now.
{
if(playerid==GetMyID())
RequestSpawn();
}
ConnectNPCEx("[A.I]ChatGPT", Vector (-1735.81, -266.977, 14.8683), -0.172573, 212, 24, 4,"npc.nut",true,"wno-host.ddns.net","rpclib z-finder actionlib npcmodule");
its changing into lovefist skinQuotenpc is dead how he gonna spawn back?, bcz i see a msg that i have spawned but not actully spawned, even though i get npc it says player not spawnedUse RequestSpawn to spawn the npc.when it is dead. It will spawn in the same class.
function OnPlayerDeath(playerid)
{
if(playerid==GetMyID())
RequestSpawn();
}
About crashing of server (i hope it is server that is crashing), when you use RFC repetitiously there might be some bug which i will look now.function OnNPCSpawn()
{
SendChat("I have spawned");
SetTimerEx("SetMyPos",700, 1, npc_pos );
SetMyPos(npc_pos);
}
function OnPlayerDeath(playerid)
{
OnNPCSpawn();
}
npc is dead how he gonna spawn back?, bcz i see a msg that i have spawned but not actully spawned, even though i get npc it says player not spawned