UE3 - UDK What does it mean by "UTWeap_ImpactHammer(B.Enemy.Weapon)" ?

  • Two Factor Authentication is now available on BeyondUnreal Forums. To configure it, visit your Profile and look for the "Two Step Verification" option on the left side. We can send codes via email (may be slower) or you can set up any TOTP Authenticator app on your phone (Authy, Google Authenticator, etc) to deliver codes. It is highly recommended that you configure this to keep your account safe.

chathura

New Member
Sep 5, 2010
6
0
0
wht does it mean by "UTWeap_ImpactHammer(B.Enemy.Weapon)" ?
wht is returned from this?
is this a function?

is it something like this?
Code:
className(parameter)
What happens when this code is written..

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?