type: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " \{\{GameCategory\|[a-z]+[0-9]?\|Scripting Commands\}\}" to "")
m (Text replacement - " \| *(game[0-9]|version[0-9]|gr[0-9]|serverExec|mp|pr|descr|s[0-9]|p[0-9]{1,3}|r[0-9]|x1?[0-9]|seealso) *= +" to " |$1= ")
Line 22: Line 22:
|descr= 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]]).


|s1= '''type''' location
|s1= '''type''' location


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

Revision as of 23:55, 19 June 2021

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