OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: mr.sert on 28 Oct 2002, 12:03:33

Title: onMapSingleClick? ?
Post by: mr.sert on 28 Oct 2002, 12:03:33
I downloaded a script that allows you to click on the map where you want your artillery to hit, however being new to scripting what exactly does this mean.

we will use onMapSingleClick to see where the user wants the shell fired.

How do I properly use onMapSingleClick? Just click the map, or press ctrl, alt, or crtl + alt, etc then click. Thanks in advance.....

- Mr. Sert
Title: Re:onMapSingleClick? ?
Post by: The_Milky_Bar_Kid on 29 Oct 2002, 00:53:33
To use that script, simply single click on the map in the game.
Title: Re:onMapSingleClick? ?
Post by: Fighting_Sioux on 30 Oct 2002, 19:16:21
I had this script and it worked well, but now I have reinstalled everything for resistance and cant find it.  I have looked through many scripts online and can't find it anymore.

Where did you find it to download?  And didn't it come with a mission to test it out?

Thanks

**** Never mind, I found it ****
Title: Re:onMapSingleClick? ?
Post by: Doolittle on 31 Oct 2002, 18:20:54
I read your post and went and redid the mission (I wrote the artillery with onMapSingleClick script originally).  Please have a look-see at http://www10.brinkster.com/dbircsak/ (http://www10.brinkster.com/dbircsak/).

The artillery and onMapSingleClick should be a lot easier to see/understand now.

Doolittle
Title: Re:onMapSingleClick? ?
Post by: gaultesian on 09 Nov 2002, 20:18:38
Doolittle your script is great - really easy to use for us Newbies and very flexible.

However, I was wondering how I can change the overall maximum distance of the Artillery Barrage - I would like to call in an artillery barrage from at least 3 km away.

Any idea how to change or modify your script(s) to do this?

Thanks for your help.

Gaultesian
Title: Re:onMapSingleClick? ?
Post by: Doolittle on 09 Nov 2002, 22:24:01
Yeah that range thing I did stinks.  I rewrote the script and now there is no range restriction.  I will release it as soon as 1.88 is released (I want to make sure it works in multiplayer), which might be next week.

Doolittle
Title: Re:onMapSingleClick? ?
Post by: gaultesian on 10 Nov 2002, 00:14:32
Sounds excellent!

I can't wait to get my hands on it - I expermented with it, making up to 12 batteries from varying positions - it is probably the best one I have seen yet - the shells come in at varying times, and then they saturate the area in what I regard as a perfect way.

Also, I want to say thanks DooLittle - I am no programmer, but these scripts is so easy to use and when you have the range changed, it will be a very flexible system.

Thanks again,

Gaultesian