- Code: Select all
if(MPCP.Tag == INTERACTION[MPCS.Condition[i]].CheckNPCTag)
INTERACTION is the struct, MPCS is the other class (ignore MPCP), Condition is the variable in the other class, "i" is from the For() loop before this line, and CheckNPCTag is the name variable I want to access (inside the struct).
I guess if nobody can help me, I could do something hax-y / cheesy with local variables everywhere but that's crap.
I have another problem regarding variables within structs - how do I set the default value? Setting these in the default properties (as just "variable=") gives me an error.
All of this is for an MP SDK thing, which supports making missions via simple var editing and should be finished fairly soon.