So yeah, I havent been able to fix this and it has destroyed my day.
It seems that the playercontroller class cannot find the variable named clips in the weaponbase class. but its clearly there.
Im still working on ways to fix this without re writing the code.
Compiler:
PlayerController.uc
WeaponBase.uc
I have tried adding
in the player controller class but this creates a circular dependency and throws an error.
Any help at all would be greatly appreciated, this was my last resort.
-Chris
It seems that the playercontroller class cannot find the variable named clips in the weaponbase class. but its clearly there.
Im still working on ways to fix this without re writing the code.
Compiler:
Code:
Analyzing... C:\UDK\UDK-2012-07\Development\Src\PlayerController.uc(291) : Error, Bad or missing expression for token: clips, in 'If' Compile aborted due to errors.
Code:
... exec simulated function Reload() { if( clips > 0) { ....; } }
Code:
class Z_DWGS_WeaponBase extends UTWeapon dependsOn(PlayerController) Abstract; var int clips; //Number of clips in our weapon
I have tried adding
Code:
dependson(weaponbase);
Any help at all would be greatly appreciated, this was my last resort.
-Chris
Comment