Gamestudio Links
Zorro Links
Newest Posts
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
1 registered members (AndrewAMD), 1,213 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
problem converting radar from AUM to lite c #329091
06/17/10 13:49
06/17/10 13:49
Joined: Nov 2008
Posts: 215
V
vertex Offline OP
Member
vertex  Offline OP
Member
V

Joined: Nov 2008
Posts: 215
I've converted a good bit, but am stuck at line 57:

scanning_range.x = 360; // pan

The error is "X is not a member of function".

If 3d game studio is 100% backwards compatible, why would not it work as c-script without mods?




var level_minx = -1800; // get these values in wed (level boundaries in quants)

var level_maxx = 1800;

var level_miny = -1500;

var level_maxy = 1500;

var scalex = 0.035; // play with these values until you get a good map coverage for the player

var scaley = 0.036;

var scanning_range = 0;



function appear_on_radar();



//bmap radar_map = <radarpan.tga>; old c-script

BMAP* radar_map = "radarpan.tga"; //lite c


PANEL* radar_pan = pan_create("bmap = radarpan.tga;",20);
set(radar_map,SHOW);



/*
{ bmap = radar_map;

layer = 20;

pos_x = 0;

pos_y = 0;

flags =SHOW;

//flags = overlay, refresh, d3d, visible; OUT

}
*/



function scanning_startup();

{


//while (player == null) {wait (1);}
while (!player) {wait (1);}

scanning_range.x = 360; // pan

scanning_range.y = 180; // tilt

scanning_range.z = 5000; // radar's range

while (1)

{

scan_entity (player.x, scanning_range.x);

wait (1);

}

}



action test_entity() // this action will be attached to your enemies-- added () for lite c

{

my.enable_scan = on;

my.event = appear_on_radar;

// put the rest of the code for your enemies here, remove the test loop from below

while (1)

{

my.x += 3 - random(6); // show some activity on the radar

my.y += 3 - random(6); // to be used only during the test phase

wait (1);

}

}

Last edited by vertex; 06/17/10 13:50.
Re: problem converting radar from AUM to lite c [Re: vertex] #329096
06/17/10 14:39
06/17/10 14:39
Joined: Aug 2007
Posts: 1,922
Schweiz
Widi Offline
Serious User
Widi  Offline
Serious User

Joined: Aug 2007
Posts: 1,922
Schweiz
false:
var scanning_range = 0;

replace with:
VECTOR scanning_range;

Re: problem converting radar from AUM to lite c [Re: Widi] #329097
06/17/10 14:54
06/17/10 14:54
Joined: Nov 2008
Posts: 215
V
vertex Offline OP
Member
vertex  Offline OP
Member
V

Joined: Nov 2008
Posts: 215
Thank you, but now says from this line:
scan_entity (player.x, scanning_range.x);

Scan_entity undeclared identifier

Re: problem converting radar from AUM to lite c [Re: vertex] #329114
06/17/10 17:07
06/17/10 17:07
Joined: Aug 2007
Posts: 1,922
Schweiz
Widi Offline
Serious User
Widi  Offline
Serious User

Joined: Aug 2007
Posts: 1,922
Schweiz
use c_scan() instead, scan_entity is the old syntax. More infos about it in the manual.


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