exec function and function calls

  • 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.

scryedzxp

New Member
Oct 26, 2005
3
0
0
I have an exec function and in it is a function call to a function in another class (M16AR).

Code:
exec function Zoom()
{
   M16AR.M16Zoom();
}

This exec fuction is located in a class called 'BFPlayer'.

Error: 'M16AR': Bad command or expression.

M16AR is a valid class. I ctrl + left-clicked on the function call, and it brings me to the appropriate function definition and file, so I'm not really sure what is wrong.

Can someone help me out? Is that an invalid function call? What exactly am I doing wrong?
 

scryedzxp

New Member
Oct 26, 2005
3
0
0
Code:
exec function Zoom()
{
   if( super(BFPawn).weapon == M16AR )
   M16AR.static.M16Zoom();
}

Is that syntax correct? I'm not quite sure of what to put in place of right-hand operand (M16AR).