Official Fulqrum Publishing forum

Official Fulqrum Publishing forum (http://forum.fulqrumpublishing.com/index.php)
-   IL-2 Sturmovik: Cliffs of Dover (http://forum.fulqrumpublishing.com/forumdisplay.php?f=189)
-   -   rearm refuel script needed (http://forum.fulqrumpublishing.com/showthread.php?t=25215)

Gourmand 08-06-2011 03:21 PM

rearm refuel script needed
 
hi, i hope a rearm/refuel script exist... the majority of dog existing is in"real configuration" ( limited ammo and fuel ).
can we have an official comment for it.
it's was great if we can reload at the base instead of create an other flight....

:rolleyes:

FG28_Kodiak 08-06-2011 03:44 PM

It's not possible, there is a get but not a set command. So you can get Informations about fuel and ammunition but at the moment it is not possible to change the values via script.
command for fuel status:
(actor as AiAircraft).getParameter(part.ParameterTypes.S_Fue lReserve, -1)
for amunition (0 = 1st gun, 1 = 2nd gun etc.)
(actor as AiAircraft).getParameter(part.ParameterTypes.S_Gun Reserve, 0)
for Bombs:
(actor as AiAircraft).getParameter(part.ParameterTypes.S_Bom bReserve, 0)

adonys 08-06-2011 10:37 PM

something is possible, via spwaning a new aicraft of player's type, then force the player from his old aircraft into the newly spawned one.


All times are GMT. The time now is 12:08 PM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 2007 Fulqrum Publishing. All rights reserved.