Search the Community
Showing results for tags 'grenade side'.
Found 1 result
-
[SOLVED] Grenade owner/side/group (Grenade Indicators)
HazJ posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
Hi all, I made grenade indicators two years ago and came around to move/update code, etc and I just don't like the way I did it but I can't seem to think of any other way. Each client has FiredNear EH which checks if grenade and then adds it to appropriate array. if (isNil "groupIndex") then { groupIndex = 1; } else { groupIndex = groupIndex + 1; }; bluforGrenades = []; opforGrenades = []; groupGrenades = []; call compile format ["group%1Grenades = [];", groupIndex]; The reason for call compile + groupIndex is Independent isn't one side. It is a solo team with groups system so friendly grenades would show for separate group. Grenades doesn't appear to have side, I have tried owner and a few other things as well but had no luck. Surely there must be a better way of doing this? I just can't think what. Any help would be great! Below is a video, you may want to mute your volume as I had Smooth radio running in background lol. Not my daily bus route music but I find it relaxing when coding in ArmA, lol. We all need to be relaxed when coding in ArmA, or even sometimes playing it. As we all know lol... "ArmA'd" The last AI was determined to get away from being fragged with the grenade, but I was more determined! As you can see in the video, lol.- 11 replies
-
- 2
-
- grenades
- drawicon3d
-
(and 2 more)
Tagged with: