Find bases

For AI and campaign script related discussions and questions
Post Reply
camellia0x++
Rookie
Rookie
Posts: 28
Joined: 22 Jan 2012, 18:28

Find bases

Post by camellia0x++ »

Do we have a function for bots to find a player's starting position?

Some way to enumerate players are list properties about them would be nice.
User avatar
NoQ
Special
Special
Posts: 6226
Joined: 24 Dec 2009, 11:35
Location: /var/zone

Re: Find bases

Post by NoQ »

startPositions[] global array.
camellia0x++
Rookie
Rookie
Posts: 28
Joined: 22 Jan 2012, 18:28

Re: Find bases

Post by camellia0x++ »

NoQ wrote:startPositions[] global array.
Is this undocumented?

I do ctrl +f and I don't find it here: http://buildbot.wz2100.net/files/javasc ... cript.html

Is there another resource I should use?

I consider myself good with scripting, but it's rather difficult when I can't find documentation...
User avatar
NoQ
Special
Special
Posts: 6226
Joined: 24 Dec 2009, 11:35
Location: /var/zone

Re: Find bases

Post by NoQ »

I'm surprised it's undocumented, and i have no idea where i learned it from. Probably just took semperfi-js's code and watched ... Anyway, you should be using the amazing unofficial documentation by aubergine.
User avatar
aubergine
Professional
Professional
Posts: 3459
Joined: 10 Oct 2010, 00:58
Contact:

Re: Find bases

Post by aubergine »

"Dedicated to discovering Warzone artefacts, and sharing them freely for the benefit of the community."
-- https://warzone.atlassian.net/wiki/display/GO
Per
Warzone 2100 Team Member
Warzone 2100 Team Member
Posts: 3780
Joined: 03 Aug 2006, 19:39

Re: Find bases

Post by Per »

Oops. Some globals dropped out of the docs somehow. I've fixed it in master now.
Post Reply