Back in topic: first test show that concept of "UMMU action" seem to work. (see above) Maybe only doug and me would use it !? but hey... 
Dan
Dan
Back in topic: first test show that concept of "UMMU action" seem to work. (see above) Maybe only doug and me would use it !? but hey...![]()

Count me in as well,
DeclareUMMUActionArea(ID,LocalPos,Radius,ON,"DontTouchMyBeer.wav");
Returned=GetUMMUActivatedActionArea();
if(Returned==ID)
{
// the bad guy drank my beer, launch a missile on him
}
Returned=GetUMMUActivatedActionArea();
if(Returned==ID&&DOOR_OPEN)
{
EditUMMUActionArea(ID,NULL,NULL,NULL,"DoorIsClosing.wav");
}
else if(Returned==ID&&DOOR_CLOSED)
{
EditUMMUActionArea(ID,NULL,NULL,NULL,"DoorIsOpening.wav");
}
if(Returned==ID&&RepairStep=1)
{
EditUMMUActionArea(ID,NULL,NULL,NULL,"OkNowGoToRedPanel.wav");
RepairStep=2;
}
else if(Returned==ID&&RepairStep=2)
{
EditUMMUActionArea(ID,NULL,NULL,NULL,"OkNowReturnToEngine.wav");
RepairStep=3;
}
else if(Returned==ID&&RepairStep=3)
{
EditUMMUActionArea(ID,NULL,NULL,NULL,"GreatEngineArOkNow.wav");
RepairStep=4;
}
else if(Returned==ID&&RepairStep=4)
{
EditUMMUActionArea(ID,NULL,NULL,OFF);
}
DeclareUMMUActionArea(ID,LocalPos,Radius,ON,DOOR_ACTION);
Returned=GetUMMUActivatedActionArea();
Okay , here's an image of the SDK header with how it could look:
Does this sound good ? (appart typo of course)
![]()
Dan, it seems as if you anticipated my future needs with this action feature. :thumbup:
One question I have: It seems that pretty much everything will be editable on runtime. That's great for debugging, but it might make it a bit too liable for "cheating". Do you plan to implement a possibility to deactivate runtime editing?
One question I have: It seems that pretty much everything will be editable on runtime. That's great for debugging, but it might make it a bit too liable for "cheating". Do you plan to implement a possibility to deactivate runtime editing?
For audio the author might enter NULL instead of a filename, I'll add that in the doc. In this case the UMMU will have no feedback sound, that's not very user-friendly.The only point of criticism I see, is that the audio file parameter is mandatory, it would be nicer if it could be omitted by having a default parameter, or by editing the sound files into the action area. Polling the actions is OK, is the list of ids per vessel or global?
About voice the problem is that you don't have access to UMMU from your vessel, so the best you can do to give feedback is oapiDebugString wich is not very great.
mmmmhh...now maybe I can allow also to pass a text that could be displayed inside UMMU VC.
The interface will be exactly the same then now, so it's not very complicated and cover almost all the cases possible. A good middle point beetween too complicated (script multicase action) and "brute" (return you only the pos of UMMU that clicked around you, charge for you to do all the work: play sound, display text etc)
Now, what key inside UMMU for "action key" !??
CTL+A ?
Why not RETURN? It is the second-biggest and least used key on all keyboards.![]()
PURE FUN !!!![]()
