Not sure what the syntax for getting a pointer to a value is in this circumstance

Hey, I’m trying to set up a pointer to my door’s Z value, but I’m not sure what the syntax is. Right now, I have written down the following:

ZVal = &(GetOwner()->GetTransform().GetRotation().Z);

ZVal is a pointer to a float, just so we’re clear.

Anyway, this is giving me a syntax error. I’m pretty sure the answer is simple, so is there a chance that someone could help me out?

Thanks,
Globin347

Note: I do realize that ZPtr is probably a better name, and have made that change.

Privacy & Terms