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.
Find bases
-
NoQ
- Special

- Posts: 6226
- Joined: 24 Dec 2009, 11:35
- Location: /var/zone
Re: Find bases
startPositions[] global array.
Maps | Tower Defense | NullBot AI | More NullBot AI | Scavs | More Scavs | Tilesets | Walkthrough | JSCam
-
camellia0x++
- Rookie

- Posts: 28
- Joined: 22 Jan 2012, 18:28
Re: Find bases
Is this undocumented?NoQ wrote:startPositions[] global array.
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...
-
NoQ
- Special

- Posts: 6226
- Joined: 24 Dec 2009, 11:35
- Location: /var/zone
Re: Find bases
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.
Maps | Tower Defense | NullBot AI | More NullBot AI | Scavs | More Scavs | Tilesets | Walkthrough | JSCam
-
aubergine
- Professional

- Posts: 3462
- Joined: 10 Oct 2010, 00:58
Re: Find bases
Index of my API docs: https://warzone.atlassian.net/wiki/display/jsapi/API
"Dedicated to discovering Warzone artefacts, and sharing them freely for the benefit of the community."
-- https://warzone.atlassian.net/wiki/display/GO
-- https://warzone.atlassian.net/wiki/display/GO
-
Per
- Warzone 2100 Team Member

- Posts: 3780
- Joined: 03 Aug 2006, 19:39
Re: Find bases
Oops. Some globals dropped out of the docs somehow. I've fixed it in master now.