<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Get Playable Area of Map]]></title><description><![CDATA[<p dir="auto">Is there a function to get the playable area of a map? I've looked before, but never found one.</p>
<p dir="auto">Would like to keep Support Bases from spawning in non-playable sections of maps, where players can't reach them.</p>
]]></description><link>https://forum.faforever.com/topic/10099/get-playable-area-of-map</link><generator>RSS for Node</generator><lastBuildDate>Wed, 03 Jun 2026 23:48:53 GMT</lastBuildDate><atom:link href="https://forum.faforever.com/topic/10099.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 05 May 2026 06:19:03 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Get Playable Area of Map on Tue, 12 May 2026 03:58:47 GMT]]></title><description><![CDATA[<p dir="auto">Oh my god...</p>
<p dir="auto">I didn't realize I needed to copy the entire function CDRMV provided. I thought it was a built-in function like GetMapSize().</p>
<p dir="auto">When it didn't work, I headed over to Github to look at more examples. Of course, they all used getPlayableArea(), which I copied.</p>
<p dir="auto">Then, it finally occurred to me CDRMV meant for me to copy the entire function. Except, I forgot I'd switch my syntax to getPlayableArea(). Only took an hour of troubleshooting to see it.</p>
]]></description><link>https://forum.faforever.com/post/73070</link><guid isPermaLink="true">https://forum.faforever.com/post/73070</guid><dc:creator><![CDATA[Rama]]></dc:creator><pubDate>Tue, 12 May 2026 03:58:47 GMT</pubDate></item><item><title><![CDATA[Reply to Get Playable Area of Map on Wed, 06 May 2026 23:06:54 GMT]]></title><description><![CDATA[<p dir="auto">For anyone working on the UI side you can get the playable area with <code>SessionGetScenarioInfo().PlayableRect</code>. There is also a user sync event with the key <code>NewPlayableArea</code> when the sim updates the playable area.<br />
Though this was added in March 2024 so you have to fall back to <code>size[1]</code> and <code>size[2]</code> for old replays.</p>
]]></description><link>https://forum.faforever.com/post/73004</link><guid isPermaLink="true">https://forum.faforever.com/post/73004</guid><dc:creator><![CDATA[Nomander]]></dc:creator><pubDate>Wed, 06 May 2026 23:06:54 GMT</pubDate></item><item><title><![CDATA[Reply to Get Playable Area of Map on Tue, 05 May 2026 16:26:45 GMT]]></title><description><![CDATA[<p dir="auto">Awesome! Much appreciated.</p>
]]></description><link>https://forum.faforever.com/post/72994</link><guid isPermaLink="true">https://forum.faforever.com/post/72994</guid><dc:creator><![CDATA[Rama]]></dc:creator><pubDate>Tue, 05 May 2026 16:26:45 GMT</pubDate></item><item><title><![CDATA[Reply to Get Playable Area of Map on Tue, 05 May 2026 06:50:34 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/rama" aria-label="Profile: rama">@<bdi>rama</bdi></a><br />
I use this Function below in my Mods several times.<br />
Mostly for my callable Reinforcements and Air Strikes.</p>
<pre><code>
function GetPlayableArea()
    if ScenarioInfo.MapData.PlayableRect then
        return ScenarioInfo.MapData.PlayableRect
    end
    return {0, 0, ScenarioInfo.size[1], ScenarioInfo.size[2]}
end
</code></pre>
]]></description><link>https://forum.faforever.com/post/72991</link><guid isPermaLink="true">https://forum.faforever.com/post/72991</guid><dc:creator><![CDATA[CDRMV]]></dc:creator><pubDate>Tue, 05 May 2026 06:50:34 GMT</pubDate></item></channel></rss>