OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: titan on 05 Apr 2003, 17:46:47
-
I need help making a script (first script actually). Could smeone help me and explain to be step by step how i cld make a script where you cld put a marker on the map and a barrage of heat120 rounds (say 10 diff rounds) wld come down in a random placement anywhere from 0 metres out to 20 metres from the marker. Then once the marker is placed down you wld use a radio to call it in. (the marker wld be named Art/Location).
-
p.s. could you not direct me to any tuts, as i dont find them easy to follow. Cause for instance if you put smething i dont follow i can then ask a question about it and it cld be explained in detail.
-
first of all: letÂ's go over some theory. (i hear u sigh) :)
This is what needs to be done (in this order):
Wait for the player to mark some point on the map.
React to that.
Create an action for the player so he can call in the artillery.
camCreate the shells at desired height, in desired quantity and of desired type.
Make sure to create them randomly around the markers position.
Watch the show.
Your homework:
Look up these commands in your reference:
* addeventhandler
* addaction
* camcreate
When u think u got a hang of what they do, let me know and weÂ'll continue.
-
yeah...it wld be a little more helpful if you told me what i actually need to put rather then what i need!?!
the main thing i need is the command to be able to create a marker in the game called smething specific!
-
You are referring to when the player clicks his map to mark a spot?
-
yeah, so u either click on the radio then open a map and click on it to create a marker for the art location. Or do the marker first then click on the radio....or even both, one radio to allow the creation of a marker then another for the art!!