usbstuck 10 Posted February 6, 2015 (edited) Hi all, Can anyone tell me how I can get this to work? When using radio command "BRAVO" the expected result is a hint with "yada 1 yada". However, it seems _forEachIndex is not passed properly. What I'm getting is "yada any yada". When I try to get the typeName, the result is an empty string... eg: hint format ["yada %1 yada", typeName (_this select 0)]; showId = { hint format ["yada %1 yada", _this select 0]; }; // Triggers _triggers = []; { _tr = createTrigger ["EmptyDetector", position player]; _tr setTriggerActivation [_x, "PRESENT", true]; _tr setTriggerStatements ["this", "[_forEachIndex] spawn showId", ""]; _triggers = _triggers + [_tr]; } forEach ["ALPHA", "BRAVO", "CHARLIE", "DELTA"]; Edited February 6, 2015 by usbStuck Share this post Link to post Share on other sites
killzone_kid 1330 Posted February 6, 2015 _tr setTriggerStatements ["this", format ["[%1] spawn showId", _forEachIndex], ""]; Share this post Link to post Share on other sites
usbstuck 10 Posted February 6, 2015 *crunch crunch*... aaah. That actually makes sense. Cheers! Share this post Link to post Share on other sites