OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: ExSeal 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
-
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.