Gamestudio Links
Zorro Links
Newest Posts
Zorro plugin for Hyperliquid.xyz
by mayarik. 10/24/26 09:14
ZorroGPT
by TipmyPip. 10/24/26 01:54
Tradestation missing in table of contents
by AndrewAMD. 10/23/26 14:35
No connection to MT4
by JeyKey II. 10/22/26 15:33
Zorro tutorial ideas?
by mistery. 10/21/26 05:28
Avoid "log\ - delete old files" message
by Martin_HH. 10/20/26 07:23
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
2 registered members (TipmyPip, mayarik), 7,449 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
JimSimons, julienp, julienper, KelleyAbbey, Yopachi
19246 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