OFPEC Forum

Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: twisted on 02 Mar 2009, 03:17:44

Title: debugging help
Post by: twisted on 02 Mar 2009, 03:17:44
Hi.

one thing i find limiting (besides my own scripting abilities and experience  :) ) in arma is the lack of on screen text feedback.

for example i try and use hint format command if an if loop, but it doesn't seem to loop.

is there a way i can get useful debugging text as defined by 1) stays in a useful position, 2) doesn't overwrite previous text, and 3) scrolls through info until perhaps 10 lines have been shown then starts to scroll away over text.

any help or nods in general directions really needed.

thing i am trying to track is a units position relative to a destination, and have when he is <10m from destination a 2nd script would work.



Title: Re: debugging help
Post by: Spooner on 02 Mar 2009, 04:17:42
* Run your mission in the MP editor and use:
Code: [Select]
player sideChat "frogs just exploded";to print to screen (use / then pageup to scroll up the list of messages).
* Write to the arma.rpt file:
Code: [Select]
"frogs just exploded" createVehicle [0, 0];* Use SPON Core (http://www.ofpec.com/forum/index.php?topic=30274.0) debug log.
Title: Re: debugging help
Post by: Ironman on 02 Mar 2009, 05:13:03
and if frogs actually explode take a screen shot of that crap cuz I want to see it lol.