dudestin / arma3_wargame Goto Github PK
View Code? Open in Web Editor NEWWargame like real-time-strategy game in arma3.
Wargame like real-time-strategy game in arma3.
config.cppにclass CfgFunctions
を追記したところ認識された
#include "script_component.hpp"
class CfgPatches {
class awg_main {
name = "awg_main";
units[] = {};
weapons[] = {};
requiredVersion = 0.1;
requiredAddons[] = {};
};
};
class CfgFunctions
{
class awg_main
{
class myCategory
{
file = "j\awg\addons\main\functions";
class test{};
};
};
};
Zeusの動作中にUIの制御ができるか検証
同様の処理を行うスクリプトを発見したので一部抜粋
_wpos = screenToWorld BR_TACV_mouseClickPos;
//near units
_nuList = [];
{if (alive _x && _x distance _wpos < (5 max (_wpos distance BR_TACV_cam) / 5)) then {_nuList set [count _nuList, _x]}; } foreach (units BR_grp);
//near waypoints
_nwpGet = [_wpos, false] call BR_TACV_GetCloseWps;
_nwpList = _nwpGet select 1;
_nwpFullList = _nwpGet select 0;
//selet closest
_selList = _nuList + _nwpList;
if (count _selList > 0) then
{
_closestSel = [_selList, _wpos] call BRfn_getClosest;
_closestIdx = _closestSel select 1;
//wp
if (_closestIdx >= count _nuList) then
{
//if (!BR_TACV_ctrlDown) then //control key can't select wp
//{
call BR_TACV_ResetSelected;
BR_TACV_selectedWp = _nwpFullList select (_closestIdx - (count _nuList));
BR_TACV_selectedWp set [4,1];
true call BR_TACV_ShowWpMenu;
if (!BR_TACV_isWpSyncing) then {(BR_TACV_selectedWp select 0) call BR_TACV_MakeUnitSelection};
//};
}
//unit
else
{
if (!BR_TACV_isTeamLayer) then {call BR_TACV_ResetSelected};
(_closestSel select 0) call BR_TACV_MakeUnitSelection;
};
};
if (count _selList == 0) then {call BR_TACV_ResetSelected;};
[] spawn BR_TACV_RefreshWpMenu;
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.