BIS fnc miscAnim: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (1 revision)
(Page filling)
Line 1: Line 1:
{{Function|= Comments
{{Function|= Comments
____________________________________________________________________________________________
____________________________________________________________________________________________


| arma2 |= Game name
| arma2 |Game name=
 
|1.00|Game version=
____________________________________________________________________________________________


|1.00|= Game version
| setting up the animations with correct positions for object - choose correct performance. For ex. fixingTowingTractor (read the description) |Description=
____________________________________________________________________________________________
____________________________________________________________________________________________


| <pre>
| [anim, person1, vehicle'', person2, isOnBoard, altitude, doMove''] call [[BIS_fnc_miscanim]] |Syntax=
/*******************************************************************************
 
*
|p1= anim: [[String]] - '''case-sensitive''', can be one of:
* version: 1.0
* '''"BagFenceSittingOn1"''' - sitting on the bagfance - front
* name: misc anim script
* '''"fixingHumwee1"''' - fixing Hummwee - engine
* description: setting up the animations with correct positions for object - choose correct performance. For ex. fixingTowingTractor (read the description)
* '''"fixingTowingTractor"''' - fixing the right front wheel of towing tractor
* parameters: described bellow
* '''"heliChecking1"''' - checking, assembling helicopter - thermal rocket silo - VENOM
* return value: nothing
* '''"heliChecking2"''' - checking, assembling helicopter - ROTATEGUN
*  
* '''"heliCleaning1"''' - cleaning,checking, helicopter MH60 - cockpit outside
******************************************************************************/
* '''"heliNavi1"''' - navigating helicopter
//TODO: help to debuglog - list of anims and description
* '''"lyingAlongVehicle1"''' - lying near the vehicle - LEFT
//TODO: waiting for animation done -> WaitUntil{_who, ["sitUnarm_R_idleLoop", "sitRfl_R_BidleLoop"] call _CheckIfAnimDone};
* '''"lyingAlongVehicle1b"''' - lying near the vehicle - RIGHT
* '''"sittingOnTheChair1"''' - sitting on the foldChair (with geton from the RIGHT side)
* '''"sittingOnTheChair1L"''' - sitting on the foldChair (with geton from the LEFT side)
* '''"sittingOnTheChair2"''' - sitting-banded on the foldChair (with geton from the RIGHT side)
* '''"sittingOnTheChair3a"''' - Sykes-like sitting
* '''"sittingOnTheChair3b"''' - Rodriguez-like sitting
* '''"tableSittingOn1"''' - sitting on the table - front
* '''"tableSupportTalking1"''' - talking leaning on table - from front
* '''"tableSupportTalking2"''' - talking leaning on table - from side
* '''"twoTalking1"''' - pair talking in front of the vehicle 0 degrees
* '''"twoTalking1a"''' - pair talking in front of the vehicle 0 degrees but pair is ROTATED
* '''"twoTalking2"''' - pair talking in side of the vehicle 90 degrees
* '''"twoTalking3"''' - pair talking in side of the vehicle 270 degrees |Parameter 1=


</pre><small>''(Placeholder description extracted from the function header by [[BIS_fnc_exportFunctionsToWiki]])''</small> |= Description
|p2= person1: [[Object]] - first actor |Parameter 2=
____________________________________________________________________________________________
 
|p3= vehicle: [[String]] - reference object (chair, table, vehicle etc.). Only used for certain anims |Parameter 3=
 
|p4= person2: [[Object]] - (Optional, default ''person1'') - second actor, if any |Parameter 4=
 
|p5= isOnBoard: [[Boolean]] - (Optional, default [[false]]) is the unit on {{arma2}} LHD (15m height) |Parameter 5=


| <!-- [] call [[BIS_fnc_miscanim]]; --> |= Syntax
|p6= altitude: [[Number]] - (Optional, default 0) custom altitude to use instead of 0 or 15m |Parameter 6=


|p1= |= Parameter 1
|p7= doMove: [[Anything]] - (Optional, default [[false]]) nil to [[setPos]] unit, any value to make it move ''via''
[[doMove]] ([[true]] for readability) |Parameter 7=


| |= Return value
| [[Nothing]] |Return value=
____________________________________________________________________________________________
____________________________________________________________________________________________


|x1= <code></code> |=  
|x1= <code>["twoTalking1", unit1, myCar, unit2] [[call]] [[BIS_fnc_miscanim]];</code> |Example 1=
____________________________________________________________________________________________
____________________________________________________________________________________________


| |= See also
| [[playMove]], [[switchMove]], [[playAction]] |See also=
 
}}
}}


Line 46: Line 65:


<h3 style="display:none">Bottom Section</h3>
<h3 style="display:none">Bottom Section</h3>
[[Category:Functions|{{uc:miscanim}}]]
[[Category:Function Group: Scenes|{{uc:miscanim}}]]
[[Category:Function Group: Scenes|{{uc:miscanim}}]]
[[Category:Functions|{{uc:miscanim}}]]
[[Category:{{Name|arma2}}: Functions|{{uc:miscanim}}]]
[[Category:{{Name|arma2}}: Functions|{{uc:miscanim}}]]
[[Category:{{Name|arma2oa}}: Functions|{{uc:miscanim}}]]
[[Category:{{Name|arma2oa}}: Functions|{{uc:miscanim}}]]
[[Category:{{Name|tkoh}}: Functions|{{uc:miscanim}}]]
[[Category:{{Name|tkoh}}: Functions|{{uc:miscanim}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:miscanim}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:miscanim}}]]

Revision as of 15:27, 29 May 2018

Hover & click on the images for description

Description

Description:
setting up the animations with correct positions for object - choose correct performance. For ex. fixingTowingTractor (read the description)
Execution:
call
Groups:
Uncategorised

Syntax

Syntax:
[anim, person1, vehicle, person2, isOnBoard, altitude, doMove] call BIS_fnc_miscanim
Parameters:
anim: String - case-sensitive, can be one of:
  • "BagFenceSittingOn1" - sitting on the bagfance - front
  • "fixingHumwee1" - fixing Hummwee - engine
  • "fixingTowingTractor" - fixing the right front wheel of towing tractor
  • "heliChecking1" - checking, assembling helicopter - thermal rocket silo - VENOM
  • "heliChecking2" - checking, assembling helicopter - ROTATEGUN
  • "heliCleaning1" - cleaning,checking, helicopter MH60 - cockpit outside
  • "heliNavi1" - navigating helicopter
  • "lyingAlongVehicle1" - lying near the vehicle - LEFT
  • "lyingAlongVehicle1b" - lying near the vehicle - RIGHT
  • "sittingOnTheChair1" - sitting on the foldChair (with geton from the RIGHT side)
  • "sittingOnTheChair1L" - sitting on the foldChair (with geton from the LEFT side)
  • "sittingOnTheChair2" - sitting-banded on the foldChair (with geton from the RIGHT side)
  • "sittingOnTheChair3a" - Sykes-like sitting
  • "sittingOnTheChair3b" - Rodriguez-like sitting
  • "tableSittingOn1" - sitting on the table - front
  • "tableSupportTalking1" - talking leaning on table - from front
  • "tableSupportTalking2" - talking leaning on table - from side
  • "twoTalking1" - pair talking in front of the vehicle 0 degrees
  • "twoTalking1a" - pair talking in front of the vehicle 0 degrees but pair is ROTATED
  • "twoTalking2" - pair talking in side of the vehicle 90 degrees
  • "twoTalking3" - pair talking in side of the vehicle 270 degrees
person1: Object - first actor
vehicle: String - reference object (chair, table, vehicle etc.). Only used for certain anims
person2: Object - (Optional, default person1) - second actor, if any
isOnBoard: Boolean - (Optional, default false) is the unit on Arma 2 LHD (15m height)
altitude: Number - (Optional, default 0) custom altitude to use instead of 0 or 15m
doMove: Anything - (Optional, default false) nil to setPos unit, any value to make it move via doMove (true for readability)
Return Value:
Nothing

Examples

Example 1:
["twoTalking1", unit1, myCar, unit2] call BIS_fnc_miscanim;

Additional Information

See also:
playMoveswitchMoveplayAction

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

Notes

Bottom Section