Jump to content

Recommended Posts

This doesn't display the addAction, while approaching the car.

Because i missed the = in the color attribute. And you filled the command with random quotes :).

 

_won = createVehicle [_type, _position, [], 0, "NONE"];
_won addAction [ "<t color = '#0000FF'>Hello</ t>", "staz\staz.sqf", [], 1, true, true, "",
    "_this distance _target < 3 && side _this isEqualTo west && !( _this in _target )"
];

Share this post


Link to post
Share on other sites

Well, at least to some excant it is what I expected. Never tried it with the single quote though, good to know. But when I started learning SQF, I was missing the \ to escape stuff until I stumbled across this "" notation. I wonder why they introduced the \ for escaping line breaks in defines, but not for ecaping quotes in strings.

No idea, it is all ancient stuff, maybe future Arma archaeologists will dig up some explanation. I guess it could be because:

 

 

 

PowerShell

Windows PowerShell is a much more advanced shell than cmd.exe, and it has been a part of Windows for many years now.

PowerShell works consistently internally with respect to quoting:

inside double-quoted strings, use `" or "" to escape double-quotes

inside single-quoted strings, use '' to escape single-quotes

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×