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
1 registered members (TipmyPip), 18,633 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
Example of Array for multiple entities #281135
07/25/09 17:11
07/25/09 17:11
Joined: May 2006
Posts: 30
awstar Offline OP
Newbie
awstar  Offline OP
Newbie

Joined: May 2006
Posts: 30
I have an AI that walks and scans for food entity. It gains health after collecting the food. However when it finds the food, it gets stuck when the food is removed. Can someone show me how arrays are written to have multiple entities, in this case food?
Download the Ai forage food project



message me your email if you need it sent to you, since download max is 10

Re: Example of Array for multiple entities [Re: awstar] #281207
07/26/09 03:13
07/26/09 03:13
Joined: Apr 2006
Posts: 624
DEEP 13
badapple Offline
User
badapple  Offline
User

Joined: Apr 2006
Posts: 624
DEEP 13
cannot download file

Re: Example of Array for multiple entities [Re: badapple] #281209
07/26/09 04:15
07/26/09 04:15
Joined: Oct 2005
Posts: 4,771
Bay City, MI
lostclimate Offline
Expert
lostclimate  Offline
Expert

Joined: Oct 2005
Posts: 4,771
Bay City, MI
you using cscript or lite c?

Re: Example of Array for multiple entities [Re: lostclimate] #281212
07/26/09 05:23
07/26/09 05:23
Joined: May 2006
Posts: 30
awstar Offline OP
Newbie
awstar  Offline OP
Newbie

Joined: May 2006
Posts: 30
it's .WDL format, I've uploaded a current version of the project to a new website here's the link:

Creature version 1b Download link

I'm trying to:
Have the robot scan and collect more than one food.

Re: Example of Array for multiple entities [Re: awstar] #281217
07/26/09 07:24
07/26/09 07:24
Joined: Oct 2005
Posts: 4,771
Bay City, MI
lostclimate Offline
Expert
lostclimate  Offline
Expert

Joined: Oct 2005
Posts: 4,771
Bay City, MI
Code:
var entPointers[10];

............
action addToList
{
    enPointers[whateverslot]=handle(my);
}

function setYouToPointer
{
    you=ptr_for_handle(whateverslot)
}

............



like that.

Also if you ever need tutoring, i tutor c-script (.wdl) for $10USD per hour over skype, PM me if your ever interested.

Last edited by lostclimate; 07/26/09 07:25.
Re: Example of Array for multiple entities [Re: lostclimate] #281368
07/26/09 21:43
07/26/09 21:43
Joined: May 2006
Posts: 30
awstar Offline OP
Newbie
awstar  Offline OP
Newbie

Joined: May 2006
Posts: 30
Thanks!!! i'm not sure which part of that code i'll need to keep as is, and which i'll need to change for it to work on my project.


Moderated by  adoado, checkbutton, mk_1, Perro 

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