Jump to content

aie-boshell

Member
  • Content Count

    65
  • Joined

  • Last visited

  • Medals

Community Reputation

19 Good

About aie-boshell

  • Rank
    Corporal

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. I was so excited about the information you guys have provided that I forgot to properly thank you gentlemen. GC8, you answered my question perfectly and gave me the solution I needed to move forward. Johnnyboy, you provided some additional information which I have used. That code works fantastic and I have modified it to suit my scenario. Both of you have helped me tremendously and are two very valuable pieces of this awesome community. Thank you again :-)
  2. Hello, what I'm trying to do is when an enemy AI surrenders, have them drop their weapons on the ground by using and addaction "Secure Prisoner" command. Of course, I could use "Remove allweapons" but this just deletes the weapons but I'd like to be able to confiscate the weapons for me to use. I've also used the action "dropweapon" but that causes a lengthy animation where the AI first aims the weapon as if ready to fire before slowly throwing the weapon out which reduces immersion. What I'd like to happen is the exact thing that happens when a player goes into inventory by pressing "i" and then moves a weapon to the ground. I don't need animations, I just need the enemy to be disarmed and have their weapons available for me to pickup off of the ground. Is this possible? As always, any help from the extremely smart community here is very much appreciated :-)
  3. That did it! Thanks so much, Drymoon :-)
  4. Hello, I'm using the actions surrender command found here https://community.bistudio.com/wiki/Arma_3_Actions#Surrender. I'm able to get it to work and what I've also done is add an action to the surrendered unit called "Secure Prisoner" using the addaction command. The "Secure Prisoner" command then causes the surrendered unit to join the unit performing the action, however, the surrendered unit is frozen and unable to follow its new group. I've tried to enable AI using the enableai command but it's not working an I've had no luck with searches. Would anyone like to help me out? Thanks in advance :-)
  5. Excellent information from all three of you. You guys are fantastic, I should have asked a long time ago. Thank you so much! I guess I should ask one more question to avoid making more work for myself again. I know it's complex and I will likely have to learn a lot and make decisions myself but is there any info you can offer about what type of commands should only be broadcast on the server?
  6. Hello, I'm fairly new at multiplayer scripting on dedicated servers. I just learned that some commands don't work on dedicated servers so I've just been trying to cover every basis to make sure my scripts work on dedicated by using both publicvariable and publicvariableserver for every variable I create. I'm now getting to where I have so many variables I'm worried that I may be unnecessarily affecting performance by adding both of these commands to each variable. Would someone like to clarify this for us? Does publicvariableserver only send the variable to the server or does it also send the variable to each client computer as well as the server? Any info is appreciated very much :-)
  7. I stand corrected. This works for sleep. Thanks so much guys :-) addMissionEventHandler ["entityKilled", { _this spawn { params ["_killed", "_killer", "_instigator"]; //If we don not have an instigator, where we controlling a UAV if (isNull _instigator) then {_instigator = UAVControl vehicle _killer select 0}; //If we still do not have an instigator use killer instead if (isNull _instigator) then {_instigator = _killer}; if (vehiclevarname _killer isEqualTo "plane_1" and _killed isKindOf "CAManBase" and side group _killed isEqualTo east) then {p_1 addscore 1}; if (vehiclevarname _killer isEqualTo "plane_1" and _killed isKindOf "CAManBase" and side group _killed isEqualTo independent and [west, independent] call BIS_fnc_sideIsenemy) then {p_1 addscore 1}; }];
  8. Still no luck :-( It says it got string while expecting array. I don't think I've given you enough information. Here is the full script. addMissionEventHandler ["entityKilled", { _this spawn { params ["_killed", "_killer", "_instigator"]; //If we don not have an instigator, where we controlling a UAV if (isNull _instigator) then {_instigator = UAVControl vehicle _killer select 0}; //If we still do not have an instigator use killer instead if (isNull _instigator) then {_instigator = _killer}; if (vehiclevarname _killer isEqualTo "plane_1" and _killed isKindOf "CAManBase" and side group _killed isEqualTo east) then {p_1 addscore 1}; if (vehiclevarname _killer isEqualTo "plane_1" and _killed isKindOf "CAManBase" and side group _killed isEqualTo independent and [west, independent] call BIS_fnc_sideIsenemy) then {p_1 addscore 1}; }];
  9. I appreciate all of your help very much. I'm still having no luck with this and am getting multiple errors. My code is fine without the additions. Here's what I'm doing. addMissionEventHandler ["entityKilled", [_this select 0, _this select 1, _this select 2] spawn { params ["_killed", "_killer", "_instigator"]; <lines of code>; sleep 2; <other lines of code>};
  10. Thank you very much for the response, Pierremgi. I do get one error when I use this. "Error Undefined variable in expression: this". Might you be be able to help me with that?
  11. Hello, I I am using an entitykilled mission eventhandler how to run a custom radio message each time a certain unit gets a Kill. Everything is working fantastic accepted that I would like to have a delay before the radio message gets played. I've been trying to use sleep and it is not working. Does anyone know how to get sleep to work with entitykilled or perhaps a viable alternative to achieve the results of getting a delay before a radio message after a certain unit gets a Kill? Any help is very much appreciated, as always :-)
  12. LOL, yes, I should clarify that in case someone has a better idea on how to accomplish it. This is a sector control type feature where ai units that are spawned in constantly assault the closest enemy sector to their location. Because "objects" are the only entity I've been able to detect the closest to the unit of, I've created a blu pencil at each blufor controlled sector and a red pencil at each opfor. Then, I create a waypoint using "addwaypoint" on the nearest blue or red pencil to the unit to make them constantly assault the closest enemy held sector. Pretty sloppy. Perhaps there is a better way.
  13. I think you're right, Tankbuster. The only trouble I'm having is that I cannot decide exactly which features I would like to implement more than others as that would depend on not only the importance of having the feature but also on the effect the feature would have on performance. With that being said, my current plan is to figure out how to create as many features as possible that I've dreamed about over the years and I'm saving only so many features to each project. When all is done I will try to combine all of the projects to create the ultimate military gaming experience, but I expect that performance might be bad after I do that so I might end up have to combine my 8 projects of features to 4 separate game modes instead of one, for example, if that makes sense. I've spent many years, actually 10+, trying to create a playable mission or game mode out of each project before something would stop me whether it was regular life, boredom, or simply coming up with a better game mode idea and moving on. This time, I think I've finally found my solution to that longtime problem in that I'm focusing on each project as a feature or collection of features then I will combine all or certain features to make one or more epic game modes or missions later. I hope that makes sense but if you still have info that may help me accomplish my goal I am definitely listening and I appreciate every piece of information you're willing to share with me.
  14. I believe "godsend" is a great word for that wiki page. That page will come very much in handy for my current project. Thanks again, Phronk! Thank you, Tankbuster. I'm going to need it very much, lol. WOW! I don't know what else to say. Just wow and thank you for sharing this extremely valuable intel that not only I but I'm sure nearly everyone in this community will benefit from. You are an extremely valuable asset to this awesome community, PierreMGI! In conclusion, without trying to sound too much like a thankful drama queen, I feel extremely lucky to be a part of such a unique and beautiful thing as the Arma Editing Community. For many years I've been reading and studying posts in this forum, as I would start promising projects and then end them when the demands of regular life became too strong to justify the benefits of completing the project. Only very recently did I get far enough on a project that I would be motivated to start my own threads and the friendly responses I've gotten that are so extremely brilliant and helpful have just about brought a tear to my eye. I'm just a nerd with a GED from Detroit, Michigan, but with the knowledge I've developed over the years thanks to you, this AMAZING community, I will actually be able to develop my dream Authentic Interactive military gaming experience that I've craved since I first got into online military gaming 15 years ago in 2002. Here's to this awesome platform we have from the one of a kind Bohemia Interactive Studios, here's to what we've created in this amazing community in the last 15 years, and here's to what we and BIS still have yet to create in the future (drinks shot of Cognac). Again, please forgive the dramatics, but I really mean every word straight from the heart. Thank you
×