- Home /
Question by
DanglyButz · Oct 06, 2012 at 02:03 PM ·
compilerthanks
Pickuptype script keeps ringing Compiler errors
Heres the script, but once its fixed Unity is just gonna ring in like 4 more lol - If you can add me on skype Im mccrleader
/*
This script must be attached on GO, which will represent any of these pick up types.
Don't forget to set layer on this GO (in my case it must be "Ammo"). Tag for every GO also must be "Ammo".
This script works together with "WeaponManager".
Few notes:
Health - to increase health in "PlayerDamageNew". Nothing important here.
Rockets - for RPG. Uses "WeaponScriptNEW" and "firstMode" must be launcher.
Magazines - for every weapon in WeaponScriptNEW, if "firstMode" isn't laucher.
SniperMagazines - for "SniperScript".
Shells - only for shotgun. Uses "ShotGunScriptNEW"
Launcher - for "WeaponScriptNEW", and secondMode must be launcher.
*/
enum PickupType { Health, Rockets, Magazines, SniperMagazines, Shells, Projectiles, StickGrenades}
var pickupType = PickupType.Health;
var amount : int = 3;
var AmmoInfo : String = "";
Comment
Answer by whydoidoit · Oct 06, 2012 at 02:35 PM
Do you have a script called PickupType.js? Because if you do then you have a hidden class called PickupType which is interfering with your enum PickupType.
Nope, No PickupType.js only PickupI.js and Weaponmanager.js
Answer by DanglyButz · Oct 06, 2012 at 05:03 PM
its still not working, same compiler errors, whydoidoit do you got skype?