Warning: file_put_contents(/ff_1edb98f45e1d2ab456afbf9a5f89f94a79183347a8ec2344.php): failed to open stream: Permission denied in /home/ofpecsav/public_html/forum/Sources/Subs-ForumFirewall.php on line 1619
typeName - OFPEC Scripting Command Reference | OFPEC The Editing Center

typeName anything

Operand types

anything: Anything

Type of returned value


Returns the data type name of an expression.
Type is returned as a string.
Returned string can be one of:

* "BOOL"
* "CODE"
* "SIDE"
* "TEXT"

These represent the available data types in Arma.
An empty string is returned if the argument is not defined.

Used In



_message = "treacle"; _datatype = typeName _message;
Result will be "STRING".

_unitname = player; _datatype = typeName _unitname;
Result will be "OBJECT".