Ventis
Member-
Content Count
6 -
Joined
-
Last visited
-
Medals
-
Medals
Everything posted by Ventis
-
the rpt says "Error while: Type Bool, expected code" ---------- Post added at 04:59 PM ---------- Previous post was at 04:54 PM ---------- Oh lol, i see now. I used while () do instead of while {} do. The output right now is 53/scalar, 32/scalar so StartAliveWest and East are still displayed as scalar. Any ideas? ---------- Post added at 05:14 PM ---------- Previous post was at 04:59 PM ---------- Fixed that as well, it was a timing issue. When it was executed in init.sqf triggers were probably not set yet or maybe the units weren't placed yet. Anyway, I put a sleep of 2 seconds before the code execution in init.sqf and that fixed it. Thx for your help guys!
-
Hi everyone, this is my first post here but I've been an avid OPF, Arma user from the very beginning. I like to create missions for personal and LAN use (if they were good enough, I would've released them) and I've been having the following problem for some time now. Although it's easy to detect when all units for a certain sides are dead, I'm having a lot of problems detecting and displaying the actual units alive. My dream would be to have a force counter in the upper left corner of the screen displaying the currently alive and total units of each side on the map. Example: West: 23/60 units alive East: 15/60 units alive I've searched the web endlessly but have never found something that comes close. I know that I need a script which detects the total number of units for each side at the beginning of the mission, save that in a variable, then continuously check the number of alive units and display that in some sort of box in the upper-left corner. Any help would greatly be appreciated, even with the displaying of the box. :)
-
Might join you tonight. Never "crossed the line" as you said, so this may be my first step to a real application.
-
Doesn't work NeoArmageddon. Do I have to call init.sqf in the editor? I thought it executed automatically. It works somewhat if I place the code in triggers instead of the sqf files but it displays the numbers as "scalar" and only executes the script once, instead of continuously. Gigan, I can't open yours in the editor, it says it's read-only. I can't launch it either when I put it in the missions folder.
-
Is this possible? I'm not having much luck with the tips Gigan gave me.
-
Thx, I'll give it a go.