Archived copy of war3source.com, the War3Source forum (2009–2020), rebuilt from the Internet Archive by wc3mods.net. This page was captured on 2012-09-22 (original capture). Forum · All archived topics · Wiki · Bug tracker · Blog
Chat

War3:Source
September 21, 2012, 09:45:27 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Download: http://war3source.com/index.php?board=9.0
What is War3Source?: http://war3source.com/index.php?topic=200.0
Sample Stats: http://war3source.com/war3stats
Steam Community Group: http://steamcommunity.com/groups/war3source
War3Source SVN Checkout: http://ownageclan.com/svn/war3source/
War3Source servers: http://www.game-monitor.com/search.php?vars=war3_version=
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Problem with FakeNPC  (Read 100 times)
M.A.C.A.B.R.A
Newbie
*
Posts: 20



View Profile WWW
« on: June 08, 2012, 02:29:26 AM »

Hi there,
I wanted to take a look at FakeNPC functionality, but I have a problem with most basic function, which creates the npc.
There's a part of my code:
Code:
new team = GetClientTeam(client);
new Float:npcpos[3];
GetClientAbsOrigin(client,npcpos);
npcpos[2]+=150.0;
new npc = War3_CreateFakeNPC(100,team,npcpos,"tmp_name_npc","Idle","models/player/ct_urban.mdl",true); // There are some errors

It compiles, but i have some errors in game in commented line:
Code:
L 06/08/2012 - 10:20:19: [war3source\WCX_Engine_FakeNPC.smx] Blocking CreateNPC because there are already 0/16 active Fake NPCs!
L 06/08/2012 - 10:20:19: [SM] Plugin encountered error 1: Unrecognizable file format
L 06/08/2012 - 10:20:19: [SM] Native "War3_CreateFakeNPC" reported: Could not create a NPC!
Error line #3 means that my new npc gets index <= 0, but I don't know why.
Am I using smth the wrong way or need to use some command first?
« Last Edit: June 08, 2012, 02:33:09 AM by M.A.C.A.B.R.A » Logged

Revan
Sr. Member
****
Posts: 263



View Profile
« Reply #1 on: June 08, 2012, 07:00:19 AM »

Alright, I've put a attempt to fix that on the svn, see if it is fixed.
And also try the example race posted here
Logged

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!