Jump to content
Sign in to follow this  
Steel UK

BIS_fnc_initVirtualUnit

Recommended Posts

https://community.bistudio.com/wiki/BIS_fnc_initVirtualUnit

Good evening, all and I hope you're doing well.

 

Regarding the linked function, does anyone happen to have any information as to what it does? I have tried it in game but all it seems to do is give the unit god mode. I have also tried it on the player character and I get the same result. 

 

Any information is greatly appreciated!

 

All the best, everyone. 

Share this post


Link to post
Share on other sites
/*
	Author: Karel Moricky

	Description:
	Initialize virtual unit
	Disable it, turn the camera upwards and save its correct side

	Parameter(s):
		0: OBJNULL

	Returns:
	BOOL
*/

_unit = _this param [0,objnull,[objnull]];

_sideID = getnumber (configfile >> "cfgvehicles" >> typeof _unit >> "sideVirtual");
_side = _sideID call bis_fnc_sideType;
_unit setvariable ["bis_fnc_objectside_side",_side];
_unit allowdamage false;

true

Sets unit side to sideVirtual and sets allowDamage false.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×