type: Difference between revisions

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


| arma1
|game1= arma1
|version1= 1.08


|1.08
|game2= arma2
|version2= 1.00


|arg=
|game3= arma2oa
|version3= 1.50


|eff=
|game4= tkoh
|version4= 1.00
 
|game5= arma3
|version5= 0.50


|gr1= Locations
|gr1= Locations
Line 13: Line 20:
|gr2= Briefing
|gr2= Briefing


| Returns a string of a [[Location]]'s class name or [[Task]]'s name (same as [[taskName]]).
|descr= Returns a string of a [[Location]]'s class name or [[Task]]'s name (same as [[taskName]]).


| '''type''' location
|s1= [[type]] location


|p1= location: [[Location]]
|p1= location: [[Location]]


| [[String]]
|r1= [[String]]


| s2= '''type''' task
|s2= [[type]] task


|p21= task: [[Task]]
|p21= task: [[Task]]


|r2= [[String]] - the type of the task
|r2= [[String]] - the type of the task
 
|x1= <code>_locationType = [[type]] myLocation;</code>
|x2= <code>_taskName = [[type]] myTask;</code>


| [[setType]]
|x1= <sqf>_locationType = type myLocation;</sqf>
|x2= <sqf>_taskName = type myTask;</sqf>
 
|seealso= [[setType]]
}}
}}
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
{{GameCategory|arma1|Scripting Commands}}
{{GameCategory|arma2|Scripting Commands}}
{{GameCategory|arma3|Scripting Commands}}
{{GameCategory|tkoh|Scripting Commands}}

Latest revision as of 11: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