Advanced Question UMMU "GetObjHandleOfLastEVACrew()"

Hlynkacg

Aspiring rocket scientist
Addon Developer
Tutorial Publisher
Donator
Joined
Dec 27, 2010
Messages
1,868
Reaction score
4
Points
0
Location
San Diego
So I'm implimenting UMMU/UCCGO on my lunar lander and I want to shift the focus from the lander to the EVAed crew member.

In theory this should be simple using standard API and UMMU calls

either
Code:
oapiSetFocusObject ( GetObjHandleOfLastEVACrew() );

or

Code:
OBJHANDLE Crewmmember = GetObjHandleOfLastEVACrew();
oapiSetFocusObject(Crewmember);

but when i try to compile I get the following error

Code:
1>c:\users\hlynkacg\documents\visual studio 2010\projects\lunarlanders\lunarlanders.cpp(507): error C3861: 'GetObjHandleOfLastEVACrew': identifier not found
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

Why?

---------- Post added at 11:29 PM ---------- Previous post was at 11:11 PM ----------

Nevermind, I'm an idiot and forgot that it should be

Code:
Crewmmember = [COLOR="Red"]Crew.[/COLOR]GetObjHandleOfLastEVACrew();
 
Back
Top