<?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[lazily call gsc functions]]></title><description><![CDATA[<p dir="auto">i am trying to call functions from other gsc files but they are for the dlcs and will not be loaded on other maps eg origins will have the one punch file but tranzit wont and i wanna be able to call the functions somehow without copy pasting the stuff from the other gsc files</p>
<p dir="auto">some examples of stuff i use<br />
//   self thread maps\mp\zombies_zm_weap_one_inch_punch::one_inch_punch_melee_attack();<br />
//   self maps\mp\zombies_zm_weap_beacon::player_give_beacon();<br />
//   level thread maps\mp\zm_tomb_craftables::quadrotor_watcher(self);<br />
//   maps\mp\zm_tomb_craftables::onfullycrafted_quadrotor(self);</p>
<p dir="auto">note: i am new to this so please forgive me if this is a bad question</p>
]]></description><link>https://forum.plutonium.pw/topic/46505/lazily-call-gsc-functions</link><generator>RSS for Node</generator><lastBuildDate>Sat, 26 Sep 2026 04:38:07 GMT</lastBuildDate><atom:link href="https://forum.plutonium.pw/topic/46505.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 10 Sep 2026 17:39:24 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to lazily call gsc functions on Thu, 10 Sep 2026 19:01:19 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/yri5" aria-label="Profile: yri5"><bdi>yri5</bdi></a> see <code>level.check_valid_spawn_override</code> and similar in the vanilla scripts.</p>
]]></description><link>https://forum.plutonium.pw/post/178830</link><guid isPermaLink="true">https://forum.plutonium.pw/post/178830</guid><dc:creator><![CDATA[Hadi77KSA]]></dc:creator><pubDate>Thu, 10 Sep 2026 19:01:19 GMT</pubDate></item><item><title><![CDATA[Reply to lazily call gsc functions on Thu, 10 Sep 2026 18:38:25 GMT]]></title><description><![CDATA[<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/hadi77ksa" aria-label="Profile: Hadi77KSA"><bdi>Hadi77KSA</bdi></a> <a href="/post/178827">said</a>:</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/yri5" aria-label="Profile: yri5"><bdi>yri5</bdi></a> I wouldn’t know then in that case as I don’t have experience with modding the game on console.</p>
</blockquote>
<p dir="auto">what do you mean by "storing the function pointer into a global variable"</p>
]]></description><link>https://forum.plutonium.pw/post/178828</link><guid isPermaLink="true">https://forum.plutonium.pw/post/178828</guid><dc:creator><![CDATA[yri5]]></dc:creator><pubDate>Thu, 10 Sep 2026 18:38:25 GMT</pubDate></item><item><title><![CDATA[Reply to lazily call gsc functions on Thu, 10 Sep 2026 18:32:03 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/yri5" aria-label="Profile: yri5"><bdi>yri5</bdi></a> I wouldn’t know then in that case as I don’t have experience with modding the game on console.</p>
]]></description><link>https://forum.plutonium.pw/post/178827</link><guid isPermaLink="true">https://forum.plutonium.pw/post/178827</guid><dc:creator><![CDATA[Hadi77KSA]]></dc:creator><pubDate>Thu, 10 Sep 2026 18:32:03 GMT</pubDate></item><item><title><![CDATA[Reply to lazily call gsc functions on Thu, 10 Sep 2026 18:28:52 GMT]]></title><description><![CDATA[<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/hadi77ksa" aria-label="Profile: Hadi77KSA"><bdi>Hadi77KSA</bdi></a> <a href="/post/178825">said</a>:</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/yri5" aria-label="Profile: yri5"><bdi>yri5</bdi></a> there are more such as storing the function pointer into a global variable or replacing an existing map-exclusive script, but those aren’t really necessary considering the options I mentioned in the first reply.</p>
</blockquote>
<p dir="auto">well i am making this script for the xbox 360 as'well which has no getFunction or replaceFunc; i am avoiding replacing map specific stuff</p>
]]></description><link>https://forum.plutonium.pw/post/178826</link><guid isPermaLink="true">https://forum.plutonium.pw/post/178826</guid><dc:creator><![CDATA[yri5]]></dc:creator><pubDate>Thu, 10 Sep 2026 18:28:52 GMT</pubDate></item><item><title><![CDATA[Reply to lazily call gsc functions on Thu, 10 Sep 2026 18:27:26 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/yri5" aria-label="Profile: yri5"><bdi>yri5</bdi></a> there are more such as storing the function pointer into a global variable or replacing an existing map-exclusive script, but those aren’t really necessary considering the options I mentioned in the first reply.</p>
]]></description><link>https://forum.plutonium.pw/post/178825</link><guid isPermaLink="true">https://forum.plutonium.pw/post/178825</guid><dc:creator><![CDATA[Hadi77KSA]]></dc:creator><pubDate>Thu, 10 Sep 2026 18:27:26 GMT</pubDate></item><item><title><![CDATA[Reply to lazily call gsc functions on Thu, 10 Sep 2026 18:12:24 GMT]]></title><description><![CDATA[<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/hadi77ksa" aria-label="Profile: Hadi77KSA"><bdi>Hadi77KSA</bdi></a> <a href="/post/178822">said</a>:</p>
<p dir="auto">You can utilise map-specific folders, for example: <code>scripts\zm\zm_tomb</code>. This is mentioned ...</p>
<p dir="auto">Alternatively, you can utilise Plutonium’s added function named: <code>getFunction</code>. This is documented ...</p>
</blockquote>
<p dir="auto">got it, im going to assume this is the only 2 ways to do it?</p>
]]></description><link>https://forum.plutonium.pw/post/178824</link><guid isPermaLink="true">https://forum.plutonium.pw/post/178824</guid><dc:creator><![CDATA[yri5]]></dc:creator><pubDate>Thu, 10 Sep 2026 18:12:24 GMT</pubDate></item><item><title><![CDATA[Reply to lazily call gsc functions on Thu, 10 Sep 2026 18:02:52 GMT]]></title><description><![CDATA[<p dir="auto">You can utilise map-specific folders, for example: <code>scripts\zm\zm_tomb</code>. This is mentioned <a href="https://plutonium.pw/docs/modding/gsc/new-scripting-features/" target="_blank" rel="noopener noreferrer nofollow ugc">here</a></p>
<p dir="auto">Alternatively, you can utilise Plutonium’s added function named: <code>getFunction</code>. This is documented <a href="https://github.com/plutoniummod/docs/tree/65626dfd7f77a9dffd455ba9ea94027d7a050e80/content/docs/builtins" target="_blank" rel="noopener noreferrer nofollow ugc">here</a></p>
]]></description><link>https://forum.plutonium.pw/post/178822</link><guid isPermaLink="true">https://forum.plutonium.pw/post/178822</guid><dc:creator><![CDATA[Hadi77KSA]]></dc:creator><pubDate>Thu, 10 Sep 2026 18:02:52 GMT</pubDate></item></channel></rss>