Gamestudio Links
Zorro Links
Newest Posts
Tradestation Multi-sessions??
by TipmyPip. 06/27/26 04:19
Z9 getting Error 058
by jcl. 06/26/26 14:07
ZorroGPT
by TipmyPip. 06/24/26 18:31
Lapsa's very own thread
by Lapsa. 06/20/26 18:18
Ranger by Robert Pardo - now for Zorro
by Smallz. 06/20/26 11:23
Z12 live performance
by jcl. 06/19/26 11:21
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
1 registered members (TipmyPip), 9,445 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Student_64151, Koti, curry, DeepxKalsi, Samed
19219 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Index #295987
10/28/09 22:05
10/28/09 22:05
Joined: Nov 2008
Posts: 109
J
JGGamer Offline OP
Member
JGGamer  Offline OP
Member
J

Joined: Nov 2008
Posts: 109
I want to know how I can create a whole set [like a list] of entities of the same model, and then find the nearest to an object. I am sure I have seen it done before.
For example:

Code:
function blocks(ENTITY* myBlock) // not sure about this.
{
	myBlock[1] = ent_create("block.mdl",vector(-192,192,0),NULL);
	myBlock[2] = ent_create("block.mdl",vector(-160,192,0),NULL);
	myBlock[3] = ent_create("block.mdl",vector(-128,192,0),NULL);
	myBlock[4] = ent_create("block.mdl",vector(-96,192,0),NULL);
	myBlock[5] = ent_create("block.mdl",vector(-64,192,0),NULL);
	myBlock[6] = ent_create("block.mdl",vector(-32,192,0),NULL);
	myBlock[7] = ent_create("block.mdl",vector(0,192,0),NULL);
	myBlock[8] = ent_create("block.mdl",vector(32,192,0),NULL);
	myBlock[9] = ent_create("block.mdl",vector(64,192,0),NULL);
	myBlock[10] = ent_create("block.mdl",vector(96,192,0),NULL);
	myBlock[11] = ent_create("block.mdl",vector(128,192,0),NULL);
	myBlock[12] = ent_create("block.mdl",vector(160,192,0),NULL);
	myBlock[13] = ent_create("block.mdl",vector(192,192,0),NULL);

}



I know this is not right, but it is done something like it.
I would then find the closest to my object.

Can someone help me please?

Re: Index [Re: JGGamer] #295988
10/28/09 22:11
10/28/09 22:11
Joined: Nov 2008
Posts: 109
J
JGGamer Offline OP
Member
JGGamer  Offline OP
Member
J

Joined: Nov 2008
Posts: 109
Sorry
I found the answer in the manual under Variables and Arrays.


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