Data Realms Fan Forums
http://45.55.195.193/

Zombie Cave Edit
http://45.55.195.193/viewtopic.php?f=73&t=13833
Page 1 of 1

Author:  Bladecat4 [ Sat Feb 28, 2009 7:13 pm ]
Post subject:  Zombie Cave Edit

Sorry, but I was editing zombie cave to drop 2 whitebots (the brainbot and a normal one) armed with a blaster pistol and laser rifle. The brainbot works fine, as well as the unarmed whitebot, but when I add in the code for the whitebot to have the rifle and pistol it bugs out

The code:
local rocket = CreateACRocket("Rocket MK2");
local brainBot = CreateAHuman("Brainbot");
local human = CreateAHuman("Whitebot");
local pistol = CreateHDFirearm("Blaster Pistol");
local rifle = CreateHDFirearm("Laser Rifle");
brainBot:AddInventoryItem(pistol);
brainBot:AddInventoryItem(rifle);
human:AddInventoryItem(pistol);
human:AddInventoryItem(rifle);
rocket:AddInventoryItem(brainBot);
rocket:AddInventoryItem(whiteBot);
The error:
SYSTEM: Scene "Zombie Cave" was loaded
PRINT: START! -- ZombieCaveMission:StartActivity()!
ERROR: no overload of 'AHuman:AddInventoryItem' matched the arguments (AHuman, HDFirearm)
candidates are:
AHuman:AddInventoryItem(MovableObject*)

ERROR: Activity "Zombie Cave" was NOT started due to errors!
PRINT: PAUSE! -- ZombieCaveMission:PauseActivity()!
SYSTEM: Activity "Zombie Cave" was paused

Anyone got a fix? I have the whitebots integrated into my base.rte folder so it's not a reference thing.
EDIT: Fixed, Thanks anyway.

Page 1 of 1 All times are UTC [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/