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: Instantiating new variables in OFP  (Read 641 times)

0 Members and 1 Guest are viewing this topic.

gnr78

  • Guest
Instantiating new variables in OFP
« on: 16 Feb 2005, 11:18:50 »
Hi,

Does anyone know if i can instantiate a variable defined in a dll and get Operations flashpoint to invoke that variable to do some things whenever an event occurs?

Thanks,
Jonathan

Offline General Barron

  • Former Staff
  • ****
  • Semper Fi!
Re:Instantiating new variables in OFP
« Reply #1 on: 16 Feb 2005, 20:07:56 »
So you mean, you want OFP to read a variable from a file OUTSIDE of ofp? Not possible, really. However, you CAN get ofp to read a SCRIPT from a different directory (instead of just the mission folder/pbo), so that might work for what you are trying to do. For example, the ECP uses an external, editable script to let the user change the settings of the ECP's scripts.
HANDSIGNALS COMMAND SYSTEM-- A realistic squad-control modification for OFP
kexp.org-- The best radio station in the world, right here at home! Listen to John Richards!