Home   Help Search Login Register  

Author Topic: New Variables / Commands Discussion  (Read 2663 times)

0 Members and 1 Guest are viewing this topic.

Offline Rommel92

  • Members
  • *
New Variables / Commands Discussion
« on: 07 Jun 2009, 17:02:33 »
Quote
Discussion of all the new / improved commands within ArmA 2.

As we all should know, ArmA 2 introduced a tonne of new (wonderful) commands to the scripting environment; and I feel as they are the most useful to me at the moment, to discuss these new commands.

Code: [Select]
allUnits
allGroups
Vehicles
playableUnits

edit: These commands are live and constantly updating, which is excellent news. A simple body remover script is easily made via a recurring script / trigger of the following:

Code: [Select]
while {true} do {
sleep 60;
{hidebody _x} foreach (RMM_AllUnits - AllUnits); RMM_AllUnits = AllUnits
}


---

Also, what other new global variables have been introduced into ArmA 2?


You see all the new diag_ functions, with a built in (diag_log) rpt dump command. Bloody useful, stops us using the old days of 'localize' to dump strings into the rpt. :P

Also anyone tried out: debugLog, and know the difference yet? I just found it, and can't test it yet.

Commands I hope to clarify on in the next few days:
Code: [Select]
enableSimulation
enableSaving
endMission
failMission
gearSlotData
isDedicated
LifeState
selectNoPlayer
ServerTime
setUnconcious
ppEffects, what can we disable here, "Radialblur"... what else

----
« Last Edit: 08 Jun 2009, 00:58:19 by Rommel92 »

Offline Spooner

  • Members
  • *
  • Mostly useless
    • Community Base Addons
Re: New Variables / Commands Discussion
« Reply #1 on: 08 Jun 2009, 17:35:02 »
vehicles was in A1, but the other related commands they added really help to make life easier.

* BIS have updated the BIKI comref with all the new commands.
* Press F1 when editing to see the in-game comref for the commands/vars. You can only do this when you are part-way through typing a command when you have a little syntax popup visible.
* DH are discussing this too.

I think this is a slightly too broad topic for a single thread, but you see where it leads you.
[Arma 2] CBA: Community Base Addons
[Arma 1] SPON Core (including links to my other scripts)

Offline Worldeater

  • Former Staff
  • ****
  • Suum cuique
Re: New Variables / Commands Discussion
« Reply #2 on: 08 Jun 2009, 20:21:37 »
Code: [Select]
ppEffects, what can we disable here, "Radialblur"... what else

Try these:
Code: (output of strings(1) run on the arma2.exe) [Select]
...
ColorInversion
DynamicBlur
ColorCorrections
WetDistortion
ChromAberration
FilmGrain
RadialBlur
...
try { return true; } finally { return false; }