View unanswered posts | View active topics It is currently Tue Apr 16, 2024 3:48 pm



Reply to topic  [ 1 post ] 
 Zombie Cave Edit 
Author Message
Banned
User avatar

Joined: Thu Feb 05, 2009 6:39 pm
Posts: 413
Reply with quote
Post 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.


Sat Feb 28, 2009 7:13 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 1 post ] 

Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.055s | 15 Queries | GZIP : Off ]