speed: Difference between revisions

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


| ofp |= Game name


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


| Object speed (in km/h). |= Description
____________________________________________________________________________________________


'''Operand types:'''
| '''speed''' obj |= Syntax


'''obj:''' [[Object]]
|p1= obj: [[Object]] |= Parameter 1


'''Type of returned value:'''
| [[Number]] |= Return value
____________________________________________________________________________________________
 
|x1= <pre>? (speed truck1) >= 100 : [[hint]] "You're going too fast!"</pre> |= Example 1
____________________________________________________________________________________________


[[Number]]
|  |= See also


'''Description:'''
}}


'''Object speed''' (in km/h).
<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>
 
[[Category:Scripting Commands|SPEED]]
? ('''speed''' truck1) >= 100 : [[hint]] "You're going too fast!"
[[Category:Scripting Commands OFP 1.96|SPEED]]
[[Category:Scripting Commands OFP 1.46|SPEED]]
[[Category:Scripting Commands ArmA|SPEED]]

Revision as of 00:52, 2 August 2006

Hover & click on the images for description

Description

Description:
Object speed (in km/h).
Groups:
Uncategorised

Syntax

Syntax:
speed obj
Parameters:
obj: Object
Return Value:
Number

Examples

Example 1:
? (speed truck1) >= 100 : [[hint]] "You're going too fast!"

Additional Information

See also:
See also needed

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