Hi, I've been having difficulty spawning a predator pack near the the player when he types in '/stealth'
Here's my code so far :
function OnPlayerCommand(ID: Byte; Text: string): boolean;
begin
Result := false;
if Text = '/stealth' then
begin
SpawnObject(GetPlayerStat(ID,'x'),GetPlayerStat(ID,'y'),20);
WriteConsole(ID,'Stealth mode acquired',$EE81FAA1);
end
else
begin
WriteConsole(ID,'Unrecognized command',$EE81FAA1);
end;
end;
When I type in /stealth, I receive the confirmation message, yet no predator pack.
Any help would be appreciated.