|
FAQ
• Search • Login
|
|
Page 1 of 1
|
[ 1 post ] |
|
Author |
Message |
Bladecat4
Banned
Joined: Thu Feb 05, 2009 6:39 pm Posts: 413
|
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 |
|
|
|
|
Page 1 of 1
|
[ 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
|
|