My Account


RSS
oZone3D.Net RSS Feeds»RSS 2.0 Feeds

Blogs
»Demoniak3D Blog
»JeGX's Infamous Lab

Sponsors

Modul8: real time video mixing and compositing


Link to Us

oZone3D.Net 100% Realtime 3D

»All Links

Web Partners

www.geeks3d.com
www.benchmarkhq.ru
www.tdt3d.com
www.steph3d.net
www.g-truc.net
www.worldpcspecs.com


Banners Exchange

www.jmax-hardware.com
cgindia.blogspot.com
grapejuice.c.la
www.game-lab.com


Links Exchange

»CYGAD's 3DXtra

Search
Google
Web
oZone3D.Net
 
oZone3D.Net - Demoniak3D Developer Guide


» Back To Index

The <timer> node

Function

The timer node makes it possible to set up an entity (the TIMER) which starts an event at regular intervals. Generally the event is a LUA scripting code.

General syntax

<timer
	name=""
	script=""
	time_out="1000"
	active="TRUE"  />

timer element

timer is the xml tag that defines a timer node.

Attributes:
  • name - [STR127] - name of the node. This name will make it possible to refer this node throughout the XML script.

  • active - [BOOLEAN] - enables (TRUE) or disables (FALSE) the timer - default value: TRUE

  • script - [STR255] - location of the script timer to be executed at each timer time-out. The site relates to the xml script. This name can also refer to an already existing LUA script in the XML code.

  • time_out - [INTEGER] - time of the timer in milliseconds. As soon as the time corresponding to the time-out is passed, the script that is specified within the script attribute is executed - default value: 1000


Example:
<timer name="timer02" script="on_timer02_lua" time_out="10" active="TRUE" /> 

<script name="on_timer02_lua" run_mode="ASYNCHRONOUS" >
	<raw_data><![CDATA[	
	
	HYP_Object.SetRoll( "plane2", -0.2 );
    
    ]]></raw_data>
</script> 




Language:


Demoniak3D
Current Version: 1.23.0
»Demoniak3D
»Download
»Libraries and Plugins
»Demos
»Online Help - Reference Guide
»Codes Samples


GPU Caps Viewer
Current Version: 1.5.0
»GPU Caps Viewer
»GPU DB Submissions


FurMark
Current Version: 1.4.0
»FurMark
»Benchmark Submissions


Geeks3D News
Page generated in 0.070451974868774 seconds.