addAction – Talk

From Bohemia Interactive Community
Revision as of 09:50, 3 April 2007 by Synide (talk | contribs)
Jump to navigation Jump to search

Is the 'spawn' command compatible with addaction? If so, what is the correct syntax?


Might it be that the arguments parameter is of type Code or possibly Structured Text....anyone??

Planck 19:27, 5 March 2007 (CET)


You can pass 1 variable in the 'arguments' parameter position.

This 1 variable may be of any 'Type' - I haven't tested all the different types, but I did test a variable of type Array, Code, String and all were parsed to the designated script with the type intact. Sy 11:04, 6 March 2007 (NZT)

Just an idea: Wouldn't it make sense to leave away the brackets in the second syntax? The short version is covered in the first syntax description anyway. --hardrock 20:24, 19 March 2007 (CET)


It's just me putting back the original syntax statement as it is in the original BI ArmA comref.

You are probably correct, but I was thinking more of the newcomers to the command reference and how to differentiate, in short, trying to make it easier for them to grasp the concept as addAction is not exactly simple in terms of the presented explanation. It is easy for us veterans, who know the commands, especially the old ones, but, for newcomers it might not seem so easy. So, I was trying to mark the difference. If you feel it can be clearer without the brackets .......go ahead.

Planck 21:07, 19 March 2007 (CET)


I think that the brackets might actually be more confusing for newcomers, since they would actually type the brackets in their code (copy-paste-style). I will remove them if it's fine for you. --hardrock 15:09, 20 March 2007 (CET)


The arguments parameter is not limited to strings. Following up on Sy:s tests, I have so far been able to pass arguments of the following types: array, boolean, group, number, object, side, string, code, script (handle) and "nothing". Hypothesis: perhaps Anything is the proper type for arguments? (Some types remain to be tested before this can be concluded - Config, Control, Display and Structured Text)

Killswitch 15:53, 2 April 2007 (CEST)


Oh, yes all true Killswitch... forgot to come back and alter to 'anything'... lol.

Sy 19:49, 3 April 2007 (NZST)