OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Scratchdat on 21 Aug 2002, 20:03:26
-
I saw that one of the Single Player missions on Resistance (i think it's the one with the tanks) had an animation of a moving map with markers which was shown during the intro.
I wanna know: HOW? AND HOW CAN I DO IT?
-
Here is the whole map animation from the intro.sqs:
showPad false;
showCompass false;
showWatch false;
showRadio false;
~2
mapAnimClear;
0 fademusic 0
mapAnimAdd [0, 0.5, getMarkerPos "ruska_zakl"];
mapAnimCommit;
ForceMap true;
@mapAnimDone;
velitel say "R05v02"
mapAnimAdd [4, 0.1, getMarkerPos "ruska_zakl"];
mapAnimCommit;
~3.5
"ruska_zakl" setMarkerColor "ColorRed"
"ruska_zakl" setMarkerType "Destroy"
~2
mapAnimAdd [2, 0.1, getMarkerPos "Obrana"];
"obrana" setMarkerColor "ColorRed"
"obrana" setMarkerType "Destroy"
mapAnimCommit;
@mapAnimDone;
~2
mapAnimAdd [1, 0.1, getMarkerPos "Obrana"];
"obrana" setMarkerSize [2,2]
"obrana" setMarkerColor "ColorGreen"
"obrana" setMarkerType "Marker"
mapAnimCommit;
@mapAnimDone;
~1
mapAnimAdd [1.5, 0.12, getMarkerPos "sipka"];
"sipka" setMarkerColor "ColorGreen"
"sipka" setMarkerType "Arrow"
"sipka" setMarkerSize [2,2]
mapAnimCommit;
@mapAnimDone;
~2
velitel say "R05v03"
mapAnimAdd [1, 0.12, getMarkerPos "miny1"];
"miny1" setMarkerColor "ColorRed"
"miny1" setMarkerType "Warning"
"miny1" setMarkerSize [1.5,1.5]
mapAnimCommit;
@mapAnimDone;
~1
mapAnimAdd [2, 0.12, getMarkerPos "miny2"];
"miny2" setMarkerColor "ColorRed"
"miny2" setMarkerType "Warning"
"miny2" setMarkerSize [1.5,1.5]
mapAnimCommit;
@mapAnimDone;
~1
velitel say "R05v05"
mapAnimAdd [2, 0.12, getMarkerPos "usa_zakl"];
"usa_zakl" setMarkerColor "ColorGreen"
"usa_zakl" setMarkerType "Flag"
mapAnimCommit;
@mapAnimDone;
~2
mapAnimAdd [3, 0.1, getMarkerPos "ruska_zakl"];
"ruska_zakl" setMarkerColor "ColorGreen"
"ruska_zakl" setMarkerType "Marker"
"ruska_zakl" setMarkerSize [1.5,1.5]
mapAnimCommit;
@mapAnimDone;
~3
velitel say "R05v06"
showRadio true;
~0.8
mapAnimAdd [1.5, 0.1, getMarkerPos "utok1"];
"utok1" setMarkerColor "ColorRed"
"utok1" setMarkerType "Arrow"
mapAnimCommit;
@mapAnimDone;
mapAnimAdd [1.5, 0.1, getMarkerPos "utok2"];
"utok2" setMarkerColor "ColorRed"
"utok2" setMarkerType "Arrow"
mapAnimCommit;
@mapAnimDone;
mapAnimAdd [1.5, 0.1, getMarkerPos "utok3"];
"utok3" setMarkerColor "ColorRed"
"utok3" setMarkerType "Arrow"
mapAnimCommit;
@mapAnimDone;
forcemap false;
Look in the offical comref to get the meanings of all these commands.
8)PEACE
-
well theres a command to allow u to 'show map' i thnk - and so basically you then place ya markers and switch em on and off etc.
but the best way is to de-pbo that particular mission and see how bis did it.
[edit]
::) lol - well there u go ::)
[/edit]
-
Gameer that's a loooooooooot of code dude.
Thanks both of you.
-
Your telling me :o
8)PEACE
-
well, its just the same command repeated over and over again... nothing complicated really (as soon as u get the hang of it)
-
#Problem solved :wow: