type: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\|x([0-9])= *<code>([^<]*)<\/code>" to "|x$1= <sqf>$2</sqf>")
 
(48 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{{Command|= Comments
{{RV|type=command
____________________________________________________________________________________________


| arma |= Game name
|game1= arma1
|version1= 1.08


|1.08|= Game version
|game2= arma2
|version2= 1.00


|arg= |= Arguments in MP
|game3= arma2oa
|version3= 1.50


|eff= |= Effects in MP
|game4= tkoh
____________________________________________________________________________________________
|version4= 1.00


| Returns a string of a location's class name.|= Description
|game5= arma3
____________________________________________________________________________________________
|version5= 0.50


| '''type''' location |= Syntax
|gr1= Locations


|p1= location: [[Location]] |= Parameter 1
|gr2= Briefing


| [[String]] |= Return value
|descr= Returns a string of a [[Location]]'s class name or [[Task]]'s name (same as [[taskName]]).
____________________________________________________________________________________________
 
|x1= <pre>_locationType = type myLocation</pre> |= Example 1
____________________________________________________________________________________________


| [[setType]] |= See also
|s1= [[type]] location


}}
|p1= location: [[Location]]
 
|r1= [[String]]


<h3 style="display:none">Notes</h3>
|s2= [[type]] task
<dl class="command_description">
<!-- Note Section BEGIN -->


<!-- Note Section END -->
|p21= task: [[Task]]
</dl>


<h3 style="display:none">Bottom Section</h3>
|r2= [[String]] - the type of the task


|x1= <sqf>_locationType = type myLocation;</sqf>
|x2= <sqf>_taskName = type myTask;</sqf>


[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
|seealso= [[setType]]
[[Category:Scripting Commands ArmA|{{uc:{{PAGENAME}}}}]]
}}
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]]
[[Category:Command_Group:_Locations|{{uc:{{PAGENAME}}}}]]

Latest revision as of 10:25, 13 May 2022

Hover & click on the images for description

Description

Description:
Returns a string of a Location's class name or Task's name (same as taskName).
Groups:
LocationsBriefing

Syntax

Syntax:
type location
Parameters:
location: Location
Return Value:
String

Alternative Syntax

Syntax:
type task
Parameters:
task: Task
Return Value:
String - the type of the task

Examples

Example 1:
_locationType = type myLocation;
Example 2:
_taskName = type myTask;

Additional Information

See also:
setType

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