-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
72 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#define MAJOR 1 | ||
#define MINOR 3 | ||
#define PATCHLVL 3 | ||
#define BUILD 220119 | ||
#define PATCHLVL 4 | ||
#define BUILD 220218 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#include "script_component.hpp" | ||
/** | ||
* Author: Timi007 | ||
* | ||
* Description: | ||
* Returns the parameters needed for mts_map_fnc_placeMapOnVehicle. | ||
* How to use: Place vehicle and map how you want the map to be placed when the action is performed. | ||
* Call this function and pass the vehicle and map objects. The returned array are the parameters. | ||
* | ||
* Parameter(s): | ||
* 0: OBJECT - Vehicle the map is placed on. | ||
* 1: OBJECT - The placeholder map object. | ||
* | ||
* Returns: | ||
* ARRAY - Parameters for mts_map_fnc_placeMapOnVehicle. | ||
* | ||
* Example: | ||
* [this, map1] call mts_map_fnc_getPlaceMapOnVehicleParams | ||
* | ||
*/ | ||
|
||
params [["_vehicle", objnull, [objNull]], ["_mapObj", objnull, [objNull]]]; | ||
|
||
CHECK(isNull _vehicle || isNull _mapObj); | ||
|
||
private _class = typeOf _vehicle; | ||
private _offset = _vehicle worldToModelVisual (ASLtoAGL (getPosASLVisual _mapObj)); | ||
private _vectorDir = vectorDir _mapObj; | ||
private _vectorUp = vectorUp _mapObj; | ||
|
||
[_class, _offset, [_vectorDir, _vectorUp]] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters