View Single Post
  #12  
Old 02-17-2012, 06:44 AM
41Sqn_Banks 41Sqn_Banks is offline
Approved Member
 
Join Date: Oct 2007
Posts: 644
Default

Quote:
Originally Posted by hc_wolf View Post
So the call in the .cs file could be something like.


if [SpitfireMkI]
types Aircraft Stationary
class part.SpitfireMkI
type Fighter
FM FlightModels.SpitfireMkI

Pneumatics Source Engine0 Pressure 300 lbsqin PrimaryContainer 4 litre Starts Open, Full SecondaryContainer 4 litre Starts Closed, Full

or
WPF.Fuel [85%]:





I think we are getting a little closer. Any assistance on this?
The mission scripts have only limited access through a defined interface. IIRC there is only read access to these values.


In this post http://forum.1cpublishing.eu/showthr...338#post342338 is a code example that shows how to read parameters from an aircraft using the "getParameter()" function. However IIRC there is no "setParameter()" function to write a value.

Last edited by 41Sqn_Banks; 02-17-2012 at 06:48 AM.
Reply With Quote