-
Notifications
You must be signed in to change notification settings - Fork 0
Component: Map
Timi007 edited this page Apr 24, 2022
·
7 revisions
Author: PhILoX, Timi007
Description: Adds actions for the player to place his current map on the ground for others to look into.
- Main
- ACE (ace_common, ace_interact_menu)
All relevant information is in the function header
- mts_map_fnc_addOpenMapAction
- mts_map_fnc_addPickupMapAction
- mts_map_fnc_placeMapOnVehicle
- mts_map_fnc_getPlaceMapOnVehicleParams
Go into the 3DEN Editor and place the vehicle you want to place the map onto. Place the map in the position you want it to spawn.
Make sure that the vehicle has no rotation. Disable the simulation of both vehicle and the map and give them a variable name.
Go into the game, open the debug console and execute:
[veh, map] call mts_map_fnc_getPlaceMapOnVehicleParams;
Copy the return value and construct the actual action:
["I_APC_Wheeled_03_cannon_F",[1.72229,-0.632324,-0.727155],[[0.00446303,0.99999,-1.04792e-005],[0.984858,-0.00439368,0.173307]]] call mts_map_fnc_placeMapOnVehicle;
This action is local and needs to be therefore executed for each player.
You can place it into the initLocalPlayer.sqf
of your mission.
If you want the action to only be visible if e.g. a door of the vehicle is open, an additional condition can be added to mts_map_fnc_placeMapOnVehicle
.