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: Flag capture script  (Read 2547 times)

0 Members and 1 Guest are viewing this topic.

CareyBear

  • Guest
Flag capture script
« on: 02 Oct 2002, 18:27:53 »


[attachment deleted by admin]

CareyBear

  • Guest
Re:Flag capture script
« Reply #1 on: 03 Oct 2002, 11:40:26 »
Have just spent the last two hours tracking down what turned out to be a painfully stupid mistake in the above. Works fine with only one flag...

Will re-release soon once I get it a little more functional and plug-in-able.

Till then, add ~5 to the init.sqs at the start. It was creating arrays of pointers to units that didn't exist yet. *sigh* So pointers were all <null> and it was *really* annoying me.

So, flags can't be captured in the first five seconds of the game... *grins*

I will also add a 'crouch / drop / get weapon' anim for the person activating  - I haven't played with anims yet - so that it takes a moment, instead of instantaneous, & alarms which come online when the flag is captured.

If you use init.sqs to refer to units.. make sure they've been created. Either have your init wait a bit, or don't call the init from someone's init field - ESPECIALLY not the first person you create in the editor.. *L*