slaver0110
Member
- Joined
- Mar 21, 2011
- Messages
- 72
- Reaction score
- 2
- Points
- 6
I have a Vessel coded and working properly, which has an ON/OFF flag which enables/disables the aft thrusters, using the "L"-key as a toggle.
The flag is defined as "PodFlag" and is an INT, which is either 1 or 0, found in the class definition. (I might just change it to a BOOL in the future, but for now it works).
I've been creating an MFD in parallel, which would be customized for this particular class of Vessel. In all honesty, I've found MFD coding to be another beast altogether, but I'm managing to put it together one line at a time.
Where I'm stuck is, I want to be able to change the "PodFlag" variable in the Vessel from the MFD. I've been looking through the API Guide and tried a few things from there, but to no avail.
I realize that certain parameters can be changed with "Vessel->...", but I need to be able to change that custom variable from the MFD.
I suppose what I'm basically asking is if there's a 'generic' way to do this.
AFTERTHOUGHT: I appreciate all the help this forum has given me, and the patience of the resident coders who put up with questions like this.
Cheers, and thanks!!
The flag is defined as "PodFlag" and is an INT, which is either 1 or 0, found in the class definition. (I might just change it to a BOOL in the future, but for now it works).
I've been creating an MFD in parallel, which would be customized for this particular class of Vessel. In all honesty, I've found MFD coding to be another beast altogether, but I'm managing to put it together one line at a time.
Where I'm stuck is, I want to be able to change the "PodFlag" variable in the Vessel from the MFD. I've been looking through the API Guide and tried a few things from there, but to no avail.
I realize that certain parameters can be changed with "Vessel->...", but I need to be able to change that custom variable from the MFD.
I suppose what I'm basically asking is if there's a 'generic' way to do this.
AFTERTHOUGHT: I appreciate all the help this forum has given me, and the patience of the resident coders who put up with questions like this.
Cheers, and thanks!!