BIS fnc diagMacrosSimpleObject: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[Category\:Function Group\: Diagnostic(\|\{\{[a-zA-Z0-9_:]+\}\})?\]\]" to "")
m (Text replacement - " *\| *([Cc]omments|COMMENTS|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments \("local" or "global"\)|Multiplayer Effects \("local" or "global"\)|Multiplayer Execution \("server" o...)
Line 1: Line 1:
{{Function|Comments=
{{Function


| arma3 |Game name=
| arma3


|1.00|Game version=
|1.00


|gr1= Diagnostic |GROUP1=
|gr1= Diagnostic


<!---|arg= local |Multiplayer Arguments=--->
<!---|arg= local |Multiplayer Arguments=--->
Line 44: Line 44:
verticalOffsetAsl = 0;\
verticalOffsetAsl = 0;\
};
};
*/</pre>{{placeholder}}<!-- Remove this after fill-in --> |Description=
*/</pre>{{placeholder}}<!-- Remove this after fill-in -->


|[] call [[BIS_fnc_diagMacrosSimpleObject]]|Syntax=
|[] call [[BIS_fnc_diagMacrosSimpleObject]]


|p1= parameter: Datatype - (Optional, default defValue) description |Parameter 1=
|p1= parameter: Datatype - (Optional, default defValue) description


|Datatype - description|Return value=
|Datatype - description


|x1= <code></code>|Example 1=
|x1= <code></code>


| |See also=
|
}}
}}



Revision as of 23:02, 17 January 2021

Hover & click on the images for description

Description

Description:
/*
	Generates simple object config data.

	Parameters:
		0: OBJECT or ARRAY - ground position where ground objects will be created (default: position calculated 15 meters away from player)
		1: SCALAR or BOOL - autolog mode (default: false)
			0 or false - no autolog, results will be only stored in clipboard
			1 or true - autolog on, results will be stored in \A3\macros_CfgVehicles_simpleObject_auto_A3.hpp file.
			2 - autlog on + world name, random number and custom suffix are appended to name of generated file to prevent overwriting and provide extra info
		2: ARRAY - classes you want to scan, use [] to scan all (default: []).
		3: OBJECT or ARRAY - sea position where ground objects will be created (default: position calculated 15 meters away from player)
		4: STRING - custom suffix added to filename if autolog is used (default: "").


	Example:
	bis_scriptHandle = [] spawn bis_fnc_diagMacrosSimpleObject;

	Expected output per class (animate and hide arrays can have varying amount of elements):
	#define CFGVEHICLES_SIMPLEOBJECT_class_F\
		class SimpleObject\
		{\
			animate[] =\
			{\
				{"animationName1", 1},\
				{"animationName2", 2}\
			};\
			hide[] =\
			{\
				"animationSelection1",\
				"animationSelection2"\
			};\
			verticalOffsetAsl = 0;\
		};
*/
Template:placeholder
Execution:
call
Groups:
Diagnostic

Syntax

Syntax:
[] call BIS_fnc_diagMacrosSimpleObject
Parameters:
parameter: Datatype - (Optional, default defValue) description
Return Value:
Datatype - description

Examples

Example 1:

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