Jump to content

Amarr 2002

Member
  • Content Count

    3
  • Joined

  • Last visited

  • Medals

Community Reputation

0 Neutral

About Amarr 2002

  • Rank
    Rookie

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Hi, I'd like to add an item in the editor with a given angle for a turret (main gun). The code below works fine for a tank e.g. CSLA_T72M1 but doesn't for an artillery, I've tried for gm_pl_army_2s1. Could you please advice how to deal with it? private _position = screenToWorld [0.4, 0.4]; private _pt_center = screenToWorld [0.5, 0.5]; private _grp = createGroup east; private _unit = _grp createUnit [ "C_man_p_beggar_F", _pt_center, [], 0, "FORM"]; private _angle_target = 111; private _itemTarget = createVehicle ["CSLA_T72M1", [(_position select 0) + 300 * (cos _angle_target), (_position select 1) + 300 * (sin _angle_target), 0], [], 0, "CAN_COLLIDE"]; private _item = createVehicle ["CSLA_T72M1", _position, [], 0, "CAN_COLLIDE"]; _unit moveInGunner _item; _item doTarget _itemTarget;
  2. Hi, Could you please advice a way how to hide literally all objects except a vehicle, i.e. trees, grass, ground, atmosphere effects etc. to have only the object "flying in the screen"? I've found how to hide terrain objects and the grass but not the terrain itself.
  3. Hi, I'd like to highlight an object created by a script in a screenshot. Ideally it would be nice to know where each pixel of the object is located and draw a mask (like it's done in Battlefield 2042). Bounding boxes would also be an option. There are boundingBox and boundingBoxReal functions, but they work in 3D world not in 2D as well as in the coordination system of the model not the camera. Additionally it would be great to know the mask and/or bounding box for both cases - only visible parts of the object and the whole object even if it's overlapped by trees/buildings e.g. Could you please advice if that's possible?
×