wht does it mean by "UTWeap_ImpactHammer(B.Enemy.Weapon)" ?
wht is returned from this?
is this a function?
is it something like this?
What happens when this code is written..
The following line is from the UTWeap_ImpactHammer.uc
if i create a new weapon Class MyWeapon which extends UTWeapon
can i put the line as
UTWeap_MyWeapon(B.Enemy.Weapon) ??
will it work?
wht is returned from this?
is this a function?
is it something like this?
Code:
className(parameter)
The following line is from the UTWeap_ImpactHammer.uc
Code:
function float GetAIRating()
{
local UTBot B;
........................
...........
if (EnemyDist < 750.f && B.Skill <= 2 && UTWeap_ImpactHammer(B.Enemy.Weapon) != None)
................
........
}
if i create a new weapon Class MyWeapon which extends UTWeapon
can i put the line as
UTWeap_MyWeapon(B.Enemy.Weapon) ??
will it work?