Warning: include(/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php): failed to open stream: No such file or directory in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Warning: include(): Failed opening '/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php' for inclusion (include_path='.:/usr/local/lib/php') in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Notice: Undefined index: OFPEC in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152
    Home   Help Login Register  

Author Topic: How do I get the C-130 Static?  (Read 2779 times)

0 Members and 1 Guest are viewing this topic.

Offline tilyard

  • Members
  • *
How do I get the C-130 Static?
« on: 23 Jun 2011, 20:23:29 »
I need a static C-130 and I don't know how to make it static. Do I give it a script/edit it/download it?

Offline Zipper5

  • BIS Team
  • ****
Re: How do I get the C-130 Static?
« Reply #1 on: 25 Jun 2011, 12:08:00 »
You definitely need it for ArmA, not Arma 2?

With ArmA it may be a little bit more complex to accomplish, but it is still possible. A setVelocity and setDir loop is the easiest but perhaps not the most ideal, mainly because it can have a negative performance impact due to the never-ending loop. To accomplish this, you would need something like this script:
Code: [Select]
/*
_this select 0 - C130 name
_this select 1 - direction
_this select 2 - altitude
*/

_c130 = _this select 0;
_dir = _this select 1;
_alt = _this select 2;

if (!(isNull driver _c130)) then {
driver _c130 disableAI "MOVE";
};

while {true} do {
_c130 setDir _dir;
_c130 setPos [(getPos this select 0), (getPos this select 1), _alt];
sleep 0.05;
};
« Last Edit: 25 Jun 2011, 12:09:40 by Zipper5 »