Try using:
MissileTarget.Target = GetNearestTarget( Cam )
after you set the variable as a global pointer like Stevie showed you.
That function is returning a pointer to a Type and may be why you're getting the "Illegal Type Conversion" error message.
Don't give up!
MissileTarget.Target = GetNearestTarget( Cam )
after you set the variable as a global pointer like Stevie showed you.
That function is returning a pointer to a Type and may be why you're getting the "Illegal Type Conversion" error message.
Don't give up!