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: Droping anything using the map  (Read 616 times)

0 Members and 1 Guest are viewing this topic.

ExSeal

  • Guest
Droping anything using the map
« on: 04 Oct 2003, 00:35:03 »
Hey i was looking around the editors depot maybe i over looked something but i was wondering if there was a script snippit or any syntax that would alow me to drop any object that i would like from just clicking to a coord on the map? I dont want anything to complicated but just something where i can click and it will drop like a ammo crate or a LGB to that location? thx for your help

Offline ACF

  • Members
  • *
  • Llama?? Ain't that French for tanks?
Re:Droping anything using the map
« Reply #1 on: 04 Oct 2003, 01:15:54 »
Check out the "onMapSingleClick" command in the Command Reference (and try a search for it as well, might turn up something useful).

You could use it to either directly to drop a single object to a point on the map or, for more control, pass the position array to a script and create and even choose the object from there.

Check out artillery scripts too - they often use onMapSingleClick and could be trimmed down to do what you need.