Gamestudio Links
Zorro Links
Newest Posts
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
0 registered members (), 905 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 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 | chip programmers | 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