NPC/Bots implementation in VCMP 0.4 Servers

Started by habi, Apr 01, 2022, 05:37 PM

Previous topic - Next topic

MEGAMIND

@habi2 how can u get a player position from RFC example

PlayerPos<-RFC(0,"GetPlayerPos");
print(PlayerPos);
where i want both the id 0 and other player that can be any id

MEGAMIND

Quote from: MEGAMIND on Nov 27, 2024, 10:41 AM@habi2 how can u get a player position from RFC example

PlayerPos<-RFC(0,"GetPlayerPos");
print(PlayerPos);
where i want both the id 0 and other player that can be any id
ah oki so i found an alternate idk if it sorts my issue out ill try this
local pid = GetPlayerIDFromName(player);
 local pid2 =  FindPlayer(pid).Pos;
 print(pid2);

and get back to u if what im really looking for

habi2

i have no idea what you are doing :P

MEGAMIND

Quote from: habi2 on Nov 27, 2024, 12:29 PMi have no idea what you are doing :P
u realy dont wanna know doing something wide range idk just to let know that making a.i see stuff via npc eyes lol