cursorTarget to Profile a Group

  1. 5 years ago

    Has anyone done something like this {PseudoCode} below?

    //object addAction [title, script, arguments, priority, showWindow, hideOnUse, shortcut, condition, radius, unconscious, selection, memoryPoint]
    
    player addAction [
        "Add Group to ALiVE",                                                                            
        {
            {    _leader = _x select 0;
                _vehicle = _x select 1;
                _group = group _leader;
                [_group, _vehicle, true] call ALIVE_fnc_vehicleAssignGroup;
            } forEach CursorTarget
        },                                                    
        nil,                                                                                        
        0.8,                                                                                                    
        false,    
        true,
        "",
        "
            side CursorTarget == playerSide                                                                    
            && CursorTarget distanceSqr _this < 40000                                                    
        "
    ];
  2. I haven't seen it done before.

    You would also need to check to see if a profile already exists for the hovered group.

 

or Sign Up to reply!