Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- { // Bring datas from selected animation data
- if (_forEachIndex >= 1) then {
- _x params [
- "_index",
- "_value"
- ] ;
- switch _index do {
- case 0 : {
- if (_loadOption == -1) then {
- _loadOption = (selectRandom _value) ;
- } ;
- } ;
- case 1 : {
- if (!_value) then {
- _unit removeWeapon primaryWeapon _unit ;
- } ;
- } ;
- case 2 : {
- _value params [
- "_pos",
- "_dir"
- ] ;
- _position = _pos ;
- _direction = _dir ;
- } ;
- case 3 : {
- if (isNil "_condition") then {
- _condition = _value ;
- } ;
- } ;
- case 4 : {
- _inMove = (_value select 0) ;
- _outMove = (_value select 1) ;
- } ;
- case 5 : {
- _ignoreAnim = _value ;
- } ;
- case 6 : {
- if (typeName _value == "CODE") then {
- _unit spawn _value ;
- } else {
- [_unit,(_value param [1])] spawn (_value param [0])
- } ;
- } ;
- case 7 : {
- _unreact = _value ;
- } ;
- case 8 : {
- _afterExec = _value ;
- } ;
- } ;
- } ;
- } forEach _lastData ;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement