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
5 registered members (Dico, AndrewAMD, TipmyPip, NewbieZorro, Grant), 15,791 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
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