BIS fnc destroyer01HandleDamage: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[[cC]ategory:[fF]unctions\|\{\{uc:[a-z 0-9 A-Z_]*\}\}\]\]" to "")
m (Text replacement - " |p1= |r1= |x1= }}" to " |p1= |r1= |x1= |seealso= }}")
 
(11 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{RV|type=function
{{RV|type=function


| arma3
|game1= arma3
 
|version1= 1.84
|1.84


|gr1= Destroyer
|gr1= Destroyer


 
|descr= <pre>/*
<!---|arg= local |Multiplayer Arguments=--->
 
<!---|eff= local |Multiplayer Effects=--->
 
| <pre>/*
Author: Bravo Zero One development
Author: Bravo Zero One development
- John_Spartan
- John_Spartan
Line 36: Line 30:
_this select 0: mode (Scalar)
_this select 0: mode (Scalar)
0: event Handler Array as documented here - https://community.bistudio.com/wiki/Arma_3:_Event_Handlers#HitPart
0: event Handler Array as documented here - https://community.bistudio.com/wiki/Arma_3:_Event_Handlers#HitPart


Returns: nothing
Returns: nothing
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>{{placeholder}}<!-- Remove this after fill-in -->
*/</pre>{{Wiki|placeholder}}<!-- Remove this after fill-in -->


|[] call [[BIS_fnc_destroyer01HandleDamage]]
|s1= [] call [[BIS_fnc_destroyer01HandleDamage]]


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


|Datatype - description
|r1=


|x1=
|x1=


|exec= call
|seealso=
}}
}}
[[Category:{{Name|arma3}}: Functions|{{uc:Destroyer01HandleDamage}}]]

Latest revision as of 02:12, 13 June 2021

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.

*/
🏗
Placeholder description extracted from the function header by BIS_fnc_exportFunctionsToWiki.
Execution:
call
Groups:
Destroyer

Syntax

Syntax:
[] call BIS_fnc_destroyer01HandleDamage
Return Value:
Return value needed

Examples

Examples:
Example needed

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