Home   Help Search Login Register  

Author Topic: Map Discovery Script  (Read 807 times)

0 Members and 2 Guests are viewing this topic.

Dissonant

  • Guest
Map Discovery Script
« on: 29 May 2003, 08:12:58 »
...there I was, setting at my pc, working on "another" mission. When a distant thought came to mind..what if I could make a mission of discovery!..What if I could start off a mission with a blank map, and as my units moved along, the map would become revealed..you know, kind of like the old "Zelda". Anyways, this could make for some bad ass missions, if anyone has an idea for a script that you could pass along, I'd greatly appreciate it.

                                            ICM
                                    -=Dissonant=-

fragsta

  • Guest
Re:Map Discovery Script
« Reply #1 on: 31 May 2003, 00:01:54 »
Interestin concept. There probably isn't a way to make the map unavailable and then available, but i'm sure there is a way to make certain objects and and enemies visible on the map using a trigger, because when you create a unit, the "Info Age" or summin like that option is available (I honestly can't remember what it is called but it gives the option of knowing where an enemy or friendly unit is on the map by marking how long ago you saw them automatically even if you haven't seen them). I'm sure there is a way to change this during the game, which would act like the compass in Zelda.

By the way, has anyone played windwaker, i've got it, its gr8! A bit off topic, ignore that if you want.

Dissonant

  • Guest
Re:Map Discovery Script
« Reply #2 on: 31 May 2003, 20:20:57 »
well...

beowulf2014

  • Guest
Re:Map Discovery Script
« Reply #3 on: 31 May 2003, 22:40:06 »
oh how we give up to easy........
 There is a way to make the map unavailable and then available...unfortunatley thereis no way to make just part of it disappear and part stay, its either all gone or all there. A scriptor in my team wrote this script that when people are in this chopper they cant see the map untill the eject and hit the ground then the map is available to them, if this helps you in anyway here ya go! ;D


(SCRIPT BY BADBLOOD OF STRIKE TATICAL OPERATIONS)

;// hidemap.sqs - Written by BadBlood 5/24/03
;// Hides map from all crew members of in a helo
;// Runs locally to keep the map hidden from crew members only
;// Calling syntax - [HeloName] exec "hidemap.sqs"(works best in a trigger)

;// get the helo ID
_helo = _this select 0

;// Create an array of all in the helo - remove the pilot from that array
_helocargo=crew _helo - [driver _helo]

;// If the player is not in the crew array - end the script
?!(Player in _helocargo) : goto "END"

;// Player is part of the crew so hide the map
showMap False
showCompass False
showGPS False

;// Turn the map on when the player hits the ground
@(getpos Player select 2 < 1)
showMap True
showCompass True
showGPS True


#END
exit
« Last Edit: 31 May 2003, 22:42:44 by beowulf2014 »