Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
2 registered members (AndrewAMD, TipmyPip), 12,709 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Any radar scripts available? #350994
12/20/10 21:02
12/20/10 21:02
Joined: Sep 2010
Posts: 67
FutureRaptor Offline OP
Junior Member
FutureRaptor  Offline OP
Junior Member

Joined: Sep 2010
Posts: 67
I need a radar script for my plane game. The enemy planes have to show up on my radar screen when they are within range. Any examples will be greatly appreciated.

Re: Any radar scripts available? [Re: FutureRaptor] #351137
12/22/10 06:02
12/22/10 06:02
Joined: Jun 2010
Posts: 21
Canada
G
GnR Offline
Newbie
GnR  Offline
Newbie
G

Joined: Jun 2010
Posts: 21
Canada
check out the gamestudio online magazine aum95 which shows you how to build a minimap. http://www.conitec.net/english/gstudio/aum.php

Re: Any radar scripts available? [Re: GnR] #351248
12/23/10 00:47
12/23/10 00:47
Joined: Sep 2010
Posts: 67
FutureRaptor Offline OP
Junior Member
FutureRaptor  Offline OP
Junior Member

Joined: Sep 2010
Posts: 67
Cool thanks, will see if I can work something out!

Re: Any radar scripts available? [Re: FutureRaptor] #351251
12/23/10 01:08
12/23/10 01:08
Joined: Mar 2009
Posts: 146
USA
P
paracharlie Offline
Member
paracharlie  Offline
Member
P

Joined: Mar 2009
Posts: 146
USA
I hate when someone takes the time to post a generic link but not the extra minute it takes to actually help someone.

Here is an actual simplified radar code that can be built on.

Code:
action entity_radar() // attach this action to the radar entity

{

       while (1)

       {

               // scan all the entities that are closer than 1000 quants to this entity

               c_scan(my.x, my.pan, vector(360, 180, 1000), IGNORE_ME); 

               wait (1);

       }

}

 

function i_am_scanned()

{

       while (event_type == EVENT_SCAN)

       {

               my.ambient = 100;

               wait (1);

       }

       my.ambient = 100;

}

 

action scanned_entities() // attach this action to the scanned entities

{

       my.emask |= ENABLE_SCAN; // make the entity sensitive to scanning

       my.event = i_am_scanned;

}




A8 Commercial
Re: Any radar scripts available? [Re: paracharlie] #351366
12/23/10 22:21
12/23/10 22:21
Joined: Sep 2010
Posts: 67
FutureRaptor Offline OP
Junior Member
FutureRaptor  Offline OP
Junior Member

Joined: Sep 2010
Posts: 67
That one seems to work but how can I get that to display dots on a radar screen. I need to have an animated radar and the radar targets on it as dots.


Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1