Gamestudio Links
Zorro Links
Newest Posts
webGL
by Ice2642. 11/17/25 21:27
Camera always moves upwards?
by NeoDumont. 11/17/25 09:56
Future of ZorroHFT
by TipmyPip. 11/16/25 13:52
COT Download with Quandl does not work
by Petra. 11/15/25 09:35
Training with the R bridge does not work
by Petra. 11/15/25 09:31
Zorro 2.70
by jcl. 11/15/25 08:43
brokerCommand PLOT_HLINE parameters
by M_D. 11/13/25 10:42
ZorroGPT
by TipmyPip. 11/10/25 11:04
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
3 registered members (TipmyPip, VoroneTZ, AndrewAMD), 7,480 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
tritom, sheliepaley, Blueguy, blobplayintennis, someone2
19178 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
c_scan #177924
01/14/08 21:12
01/14/08 21:12
Joined: Jun 2007
Posts: 63
Italy
Sonic220 Offline OP
Junior Member
Sonic220  Offline OP
Junior Member

Joined: Jun 2007
Posts: 63
Italy
How c_scan work?

I want a camera to be set if player enter the yellow circle, but by the F1 guide I haven't undersand nothing, someone can create an example?
I've this code now, and only one camera work (and not good).
Code:
action detect_player
{
my.invisible = on; // hide the model
my.passable = on;
while (player == null) {wait (1);} // wait until the player is loaded
if (my.cam_number == 0) {beep; beep; beep; exit;}
if (my.cam_range == 0) {beep; beep; beep; exit;}
while (1)
{
temp.x = 360; // horizontal scanning angle
temp.y = 180; // vertical scanning angle
temp.z = my.cam_range; // scanning range
c_scan(my.x,my.pan,vector(120,180,my.cam_range),SCAN_ENTs);

if (result > 0) // got something?
{
set_camera(my.cam_number); // then set the proper camera position and angles
}
wait (1);
}
}



More from one AUM


~Vision Divine~
Re: c_scan [Re: Sonic220] #177925
01/14/08 22:35
01/14/08 22:35
Joined: May 2007
Posts: 185
Netherlands
SurudoiRyu Offline
Member
SurudoiRyu  Offline
Member

Joined: May 2007
Posts: 185
Netherlands
try it with my example i use for my game

ACTION Metal_Opties
{
my.invisible = on; // so it is hidden
my.ENABLE_SONAR = on; //activate sonar
my.event = pickup_event; //event call
}

function pickup_event()
{


if (event_type == EVENT_SONAR) // if you get in the sonar
{

beep;
beep;
beep;

}
}


Try this maybe it is what you want.


-The Dragon's Eye is alway's watching you!-

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