OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Olle Stolpe on 23 Feb 2005, 17:59:38
-
Anyone have a good idea how to put a vehicle at 1 of 10 or more different locations.
I want to make a mission dynamic so that a Scud-car is positioned differently inside a town
every time you play the mission.
Thanks.
-
Put a marker at each of the positions and group the Scud to each. Or is it synch? I think its group it and it'll appear randomly at the spot of one of the markers. An old trick from the "Steal the Car" BIS mission. ;)
-
I'll try it...
thx
-
Works fine.. Put I would like to make it more precise.. Like change the Azimut on some positions.
Is there a way of putting like 5 scuds on the map and have the computer to pick out one to use
for the mission?
-
Have a look here for other ideas (I won't chide you for not searching because I just did and I couldn't find the bloody thread!)
http://www.ofpec.com/yabbse/index.php?board=22;action=display;threadid=21689 (http://www.ofpec.com/yabbse/index.php?board=22;action=display;threadid=21689)
It'll be a good little scripting exercise.
@GRK - never knew that trick though.
-
I am just thinking out loud here, but if you changed the azimuth of the marker could that change the direction that the Scud is facing?
Another thought would be to put a trigger at each place where the Scud could be located and if the Scud is present then set the direction of the Scud to the desired azimuth for that particular position using the "setdir" command.
Wadmann
-
I think Wadmann is right, change direction of marker to change scud direction. Sounds like something OFP would do. ;D
-
Changing the direction of the marker doesn't work for me.
Wadmann's second good idea, the trigger and setDir trick, would work fine.
-
it did