BIS fnc destroyer01HandleDamage: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (rollback)
m (infobox to template)
Line 38: Line 38:
Result: Destroyer (ship) window textures are swapped for damaged ones. Simple swap.
Result: Destroyer (ship) window textures are swapped for damaged ones. Simple swap.


*/</pre>{{Informative|Placeholder description extracted from the function header by [[BIS_fnc_exportFunctionsToWiki]]}} |Description=
*/</pre>{{placeholder}}<!-- Remove this after fill-in --> |Description=


|[] call [[BIS_fnc_Destroyer01HandleDamage]]|Syntax=
|[] call [[BIS_fnc_Destroyer01HandleDamage]]|Syntax=

Revision as of 16:26, 2 April 2019

Hover & click on the images for description

Description

Description:
/*
	Author: Bravo Zero One development
	- John_Spartan

	Description:
	- This is a damage visual FX simulation function designed to animate ships bridge windows when shot.
	  Due to engine limitation (damage simulation is disabled for indestructible objects e.g. ships components) this workaround is applied.

	Execution:
	- Call from EH on the ship's model part with windows.

		Example:
		class Eventhandlers
		{
			HitPart = "_this call BIS_fnc_Destroyer01HandleDamage;";
		};

	Requirements:
	- Compatible object (e.g. ship component) must have a set of selections that are setup and named by convention.
	  Selections must be defined as hidden selections in order for setObjectTexture to work.

	Parameter(s):
		_this select 0: mode (Scalar)
		0: event Handler Array as documented here - https://community.bistudio.com/wiki/Arma_3:_Event_Handlers#HitPart


	Returns: nothing
	Result: Destroyer (ship) window textures are swapped for damaged ones. Simple swap.

*/
Template:placeholder
Execution:
call
Groups:
Uncategorised

Syntax

Syntax:
[] call BIS_fnc_Destroyer01HandleDamage
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