daytime: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
[[Category:Scripting Commands|DAYTIME]]
{{Command|= Comments
[[Category:Scripting Commands OFP 1.96|DAYTIME]]
____________________________________________________________________________________________
[[Category:Scripting Commands OFP 1.46|DAYTIME]]
[[Category:Scripting Commands ArmA|DAYTIME]]


| ofp |= Game name


<h2 style="color:#000066">'''dayTime '''</h2>
|1.00|= Game version
____________________________________________________________________________________________


| Returns the current ingame time in hours. |= Description
____________________________________________________________________________________________


'''Operand types:'''
| '''daytime''' |= Syntax


None
| [[Number]] - 
Time in decimal writing. |= Return value
____________________________________________________________________________________________
 
|x1= <pre>; assumme it is 16:30
_daytime = daytime</pre>


'''Type of returned value:'''
returns 16.5 |= Example 1
____________________________________________________________________________________________


[[Number]]
| [[skipTime]] |= See also


'''Description:'''
}}


Time in the world, in hours (24 hour clock)
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->


<!-- Note Section END -->
</dl>


'''Example:'''
<h3 style="display:none">Bottom Section</h3>


_timeofday = '''dayTime'''
[[Category:Scripting Commands|DAYTIME]]
[[Category:Scripting Commands OFP 1.96|DAYTIME]]
[[Category:Scripting Commands OFP 1.46|DAYTIME]]
[[Category:Scripting Commands ArmA|DAYTIME]]

Revision as of 00:40, 2 August 2006

Hover & click on the images for description

Description

Description:
Returns the current ingame time in hours.
Groups:
Uncategorised

Syntax

Syntax:
daytime
Return Value:
Number - Time in decimal writing.

Examples

Example 1:
; assumme it is 16:30
_daytime = daytime
returns 16.5

Additional Information

See also:
skipTime

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note

Notes

Bottom Section