Gamestudio Links
Zorro Links
Newest Posts
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 05:41
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AbrahamR, AndrewAMD), 1,278 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 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