cuel
Member-
Content Count
1592 -
Joined
-
Last visited
-
Medals
Everything posted by cuel
-
Advanced Combat Radio Environment 2 (ACRE2)
cuel replied to ACRE_Team's topic in ARMA 3 - ADDONS & MODS: COMPLETE
An API function was added so that other spectator systems can call ACRE API if they block keybind events. In this case, to mute other spectators.- 896 replies
-
- 1
-
Make AI walk to an exact spot
cuel replied to theend3r's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Tried doMove? -
Why no script?
-
[RELEASE] TypeSqf Editor - [OpenSource]
cuel replied to engima's topic in ARMA 3 - MISSION EDITING & SCRIPTING
It's a better version of BIS_fnc_param, and yes it declares them. There's no reason to use _this select anymore- 206 replies
-
You could introduce some bugs doing by removing all EHs (e.g mods). I'd suggest just checking if the unit is alive before doing anything.
-
Make initplayerlocal.sqf wait till player spawns to run..
cuel replied to 3l0ckad3's topic in ARMA 3 - MISSION EDITING & SCRIPTING
initPlayerLocal assures that the player object exists so he most certainly is spawned. Either do waitUntil {time > 0}; // mission has started Or set a publicVariable on the server and wait for that on the clients -
Infinite loading screen - Script Issue
cuel replied to J. Yssing's topic in ARMA 3 - MISSION EDITING & SCRIPTING
No, everyone runs init fields. Including JIP @OP I suggest you upload your server .rpt to pastebin and share it here -
Sleep inside function not working
cuel replied to phronk's topic in ARMA 3 - MISSION EDITING & SCRIPTING
https://community.bistudio.com/wiki/Code_Optimisation#Threads SQF has scheduled and non-scheduled environments. Non-scheduled can not "suspend", e.g use waitUntil, sleep, uiSleep. -
strange performance drop in SQF
cuel replied to ussrlongbow's topic in ARMA 3 - MISSION EDITING & SCRIPTING
That doesn't help -
Destroy almost all buildings on the map?
cuel replied to acoustic's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Destroy the towns when needed (player approaches). Don't destroy them all at once -
strange performance drop in SQF
cuel replied to ussrlongbow's topic in ARMA 3 - MISSION EDITING & SCRIPTING
I don't get the second code snippet at all. You set index to 1 and then the if will always be true and you only do setCtrlText on 66311. Besides the 1st snippet just clears the text while the 2nd snippet sets the control text to a .paa so yeah I'd expect it to be slower -
player allowDamage true call on all machines help
cuel replied to sgtelis's topic in ARMA 3 - MISSION EDITING & SCRIPTING
https://community.bistudio.com/wiki/allowDamage Note the "AL" icon, The thing you're executing it on has to be local, in your example you're using player, which is the current "player" object on each client. Player object is always local (for each client, on a dedicated it does not exist - objNull). Note the "EG" icon, that means that it's broadcasted, so no, you would not have to execute it on every machine. You should post the script and how it's called- 9 replies
-
- 1
-
- allowDamage
- editor
-
(and 3 more)
Tagged with:
-
Local player check incorrectly returning false?
cuel replied to fourjays's topic in ARMA 3 - MISSION EDITING & SCRIPTING
"local player" is true on every client, you only want the client that gets the loadout to run the script params ["_unit", "_loadout"]; if (!hasInterface) exitWith {}; waitUntil {!isNull player}; if (!local _unit) exitWith {}; -
Disable the display of "Kill and Death" (Key "P")
cuel replied to snakeplissken's topic in ARMA 3 - MISSION EDITING & SCRIPTING
NetStats=0; in your server difficulty https://community.bistudio.com/wiki/server.armaprofile- 13 replies
-
- Disable K/D
- K/D
-
(and 1 more)
Tagged with:
-
is isServer , isDedicated or hasInterface still revelvent
cuel replied to MarkCode82's topic in ARMA 3 - MISSION EDITING & SCRIPTING
They most certainly are -
[RELEASE] Arma 3 Mission Skeleton - version 1.3 (includes mission build script)
cuel replied to ussrlongbow's topic in ARMA 3 - MISSION EDITING & SCRIPTING
<snip> -
apply or forEach (or maybe count)?
cuel replied to sarogahtyp's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Not really, select is used to filter array elements, while apply is normally used to transform the array elements into something else. Select can return less elements while apply will ways return the same amount of elements What I wrote can be explained like this _plrs = allPlayers; _alivePlrs = _plrs select {alive _x}; // we filter out dead players. the resulting array can be smaller _alivePlrsUID = _alivePlrs apply {getPlayerUID _x}; // returns an array of playerUids for each element in the _alivePlrs -
apply or forEach (or maybe count)?
cuel replied to sarogahtyp's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Apply is inherited from a concept in functional programming, namely functor. Normally it's called map Or in SQF "it takes an array and code, applies code to each element and returns a new array" E.g _playerUIDS = allPlayers apply {getPlayerUID _x}; // ["12345"; "54321"] It can also be chained which is where it's real power comes in, in combination with select (which is often called filter in programming languages) _alivePlayersUID = allPlayers select {alive _x} apply {getPlayerUID _x}; // apply {} select {} apply {}; This can be done indefinitely. So no, apply is not like forEach and count. If you're not interested in the resulting array, use count or forEach -
how to terminate bis_taskPatrol
cuel replied to Persian MO's topic in ARMA 3 - MISSION EDITING & SCRIPTING
All bis_fnc_taskPatrol does it to create a few random waypoints. while {(count (waypoints _group)) > 0} do { deleteWaypoint ((waypoints _group) select 0); }; Should do the trick. -
Well not really, it's more AI related. It increases the knowsAbout value, read more here https://community.bistudio.com/wiki/knowsAbout esp. the comments
-
That example "reveals" the current object under the cursor on the client. The reveal increases the knowsAbout value, which it what make AI see / know about each other. And essentially go into combat
-
[SOLVED] Get the activator (player) of a GUI button.
cuel replied to Fiddi's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Yes. It is a local command. On a dedicated server it will return objNull. But it doesn't have a interface so the GUI is useless there anyway -
Lags in Multiplayer because of remoteExec and publicVariable possible?
cuel replied to commanderx's topic in ARMA 3 - MISSION EDITING & SCRIPTING
It's not so bad. You should show some code. -
ArmA3Sync - launcher and addons synchronization software for ArmA 3
cuel replied to major_shepard's topic in ARMA 3 - COMMUNITY MADE UTILITIES
So all I had to do was remove the repository (settings) in A3S and add it back again, same settings., Then it worked. Edit: christ why is there no auto-merge on posts -
ArmA3Sync - launcher and addons synchronization software for ArmA 3
cuel replied to major_shepard's topic in ARMA 3 - COMMUNITY MADE UTILITIES
If I remove everything and just put an empty folder with a few files inside \addons, it works fine. (Like you did). Moving the files back and it doesn't work, 550 error