<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://wiki.hoggitworld.com/index.php?action=history&amp;feed=atom&amp;title=DCS_hook_onSimulationFrame</id>
		<title>DCS hook onSimulationFrame - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.hoggitworld.com/index.php?action=history&amp;feed=atom&amp;title=DCS_hook_onSimulationFrame"/>
		<link rel="alternate" type="text/html" href="https://wiki.hoggitworld.com/index.php?title=DCS_hook_onSimulationFrame&amp;action=history"/>
		<updated>2026-04-24T09:50:34Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>https://wiki.hoggitworld.com/index.php?title=DCS_hook_onSimulationFrame&amp;diff=12885&amp;oldid=prev</id>
		<title>Grimes: Created page with &quot;{{Template:DCS_hooks_callbacks  |fName= onSimulationFrame  |vNum= 2.5.0  |par1= hook  |par2=   |par3=   |par4=  |desc= Occurs constantly as the simulation...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.hoggitworld.com/index.php?title=DCS_hook_onSimulationFrame&amp;diff=12885&amp;oldid=prev"/>
				<updated>2021-05-15T00:01:42Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{Template:DCS_hooks_callbacks  |fName= onSimulationFrame  |vNum= 2.5.0  |par1= &lt;a href=&quot;/index.php?title=DCS_server_hooks&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;DCS server hooks (page does not exist)&quot;&gt;hook&lt;/a&gt;  |par2=   |par3=   |par4=  |desc= Occurs constantly as the simulation...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Template:DCS_hooks_callbacks&lt;br /&gt;
&lt;br /&gt;
|fName= onSimulationFrame&lt;br /&gt;
&lt;br /&gt;
|vNum= 2.5.0&lt;br /&gt;
&lt;br /&gt;
|par1= [[DCS_server_hooks|hook]]&lt;br /&gt;
&lt;br /&gt;
|par2= &lt;br /&gt;
&lt;br /&gt;
|par3= &lt;br /&gt;
&lt;br /&gt;
|par4=&lt;br /&gt;
&lt;br /&gt;
|desc= Occurs constantly as the simulation is running. This function runs extremely fast, '''several hundred times a second'''. It is highly recommended to put in checks to limit how often code can run from this function. &lt;br /&gt;
&lt;br /&gt;
|rtnType= nothing&lt;br /&gt;
&lt;br /&gt;
|rtnExample= &lt;br /&gt;
&lt;br /&gt;
|reqType1= &lt;br /&gt;
&lt;br /&gt;
|reqName1= &lt;br /&gt;
&lt;br /&gt;
|reqType2= &lt;br /&gt;
&lt;br /&gt;
|reqName2=&lt;br /&gt;
&lt;br /&gt;
|optType1= &lt;br /&gt;
&lt;br /&gt;
|optName1= &lt;br /&gt;
&lt;br /&gt;
|optType2=&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|related= &lt;br /&gt;
List of Callbacks: {{listOfDCSHooks}}&lt;br /&gt;
&lt;br /&gt;
|examples= Runs whatever code you want at an interval of 10 seconds. &lt;br /&gt;
   local lTime = DCS.getModelTime()&lt;br /&gt;
   function myCall.onSimulationFrame()&lt;br /&gt;
      if lTime + 10 &amp;lt; DCS.getModelTime() then&lt;br /&gt;
         lTime = DCS.getModelTime()&lt;br /&gt;
         -- whatever code you want&lt;br /&gt;
      end &lt;br /&gt;
   end&lt;br /&gt;
&lt;br /&gt;
|notes= &lt;br /&gt;
}}&lt;br /&gt;
[[Category:DCS Hooks|onSimulationFrame]]&lt;/div&gt;</summary>
		<author><name>Grimes</name></author>	</entry>

	</feed>