How to pass multiple variable values through the same function parameter?

Hi, I’ve been wondering about something that I haven’t learned in this unreal engine course yet. So up until now, I’ve learned that variable values can be passed through function parameters, as we did here:

bool bLevelComplete = PlayGame(LevelDifficulty);

My question is, how can I pass multiple variable values through the same function parameter?
I hope someone would help me out with this one. Thanks.
(Btw, I’m on lecture 29 right now)

Not entirely sure what you’re asking for. If you want a function to take multiple values you declare it with multiple parameters

int area(int h, int w)
{
    return h * w;
}
int main()
{
    int test = area(2, 3);
    return 0;
}

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms