From 0aa348133ddc7eedb6ad711b7c12df0701b349ba Mon Sep 17 00:00:00 2001 From: commy2 Date: Wed, 14 Jan 2015 04:36:33 +0100 Subject: [PATCH] fix target wall texture path --- addons/ballistics/scripts/initTargetWall.sqf | 3 ++- addons/ballistics/scripts/script_component.hpp | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 addons/ballistics/scripts/script_component.hpp diff --git a/addons/ballistics/scripts/initTargetWall.sqf b/addons/ballistics/scripts/initTargetWall.sqf index 4df45fa1db..dd1f42bb7d 100644 --- a/addons/ballistics/scripts/initTargetWall.sqf +++ b/addons/ballistics/scripts/initTargetWall.sqf @@ -1,4 +1,5 @@ // by commy2 +#include "script_component.hpp" _wall = _this select 0; @@ -8,5 +9,5 @@ if (local _wall) then { _paper attachTo [_wall, [0,-0.02,0.6]]; _paper setDir getDir _wall; - _paper setObjectTextureGlobal [0, "\AGM_Ballistics\textures\target_ca.paa"]; + _paper setObjectTextureGlobal [0, QUOTE(PATHTOF(textures\target_ca.paa))]; }; diff --git a/addons/ballistics/scripts/script_component.hpp b/addons/ballistics/scripts/script_component.hpp new file mode 100644 index 0000000000..998ced0210 --- /dev/null +++ b/addons/ballistics/scripts/script_component.hpp @@ -0,0 +1 @@ +#include "\z\ace\addons\ballistics\script_component.hpp" \ No newline at end of file