OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Meatball0311 on 17 Dec 2005, 09:09:01
-
This is what I want to do, I want to click on the map and have a helo fly to that pos and perform an action (lets say land). I have looked and even did a search, cant find a thing about SP onMapSingleClick. I need to know what to put into the script and where to put it.
-
first port of call concerning commands in flashpoint should always be the comref (http://www.ofpec.com/editors/comref.php?letter=O#onMapSingleClick). plenty of help there ;)
-
I know and I looked, but really what I need help in is where exactly do I put the information (trigger?, script?,......) I am new at doing major editing.
-
In general you can put commands anywhere - script file, trigger, waypoint or init field. (There are a few exceptions.) This command is tricky and although it will technically work elsewhere, it's usually best to put it in a script.
Before you start messing with it, write a script that makes a chopper fly to a known point and land. Only when that is working smoothely should you expand it to cope with onMapSingleClick.