WikedBubble
Member-
Content Count
5 -
Joined
-
Last visited
-
Medals
Everything posted by WikedBubble
-
Get AI unit to Shoot Payer uuid not in my clan array?
WikedBubble replied to WikedBubble's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
Twirly, You are the man, works like a charm. Thank you sooooooo much. Bubble -
Get AI unit to Shoot Payer uuid not in my clan array?
WikedBubble posted a topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
Hello Everyone, I am new to Arma2 scripting and editing and was hoping someone might have a little more insight than me. Unfortunately I am not a developer and am having some trouble wrapping my head around the syntax required to get a "Blufor" unit to fire upon a player who is not in a predefined array. I have read up and successfully created an array filled with player uuid's that I would like to have not fired upon by a blufor unit. I would like to trigger this with an area trigger but if that cannot be done, maybe I can just have the individual unit/units act upon this command. I have found the "dotarget" and "dofire" commands but I really have no idea how to implement them. Basically I have a base setup that I only want certain players to have access to, when a player not in my array gets to close or in range of the bluefor unit/units I would like them to fire upon said player who's uuid is not in my array. I do know that this will involve the unit getting the player uuid and comparing it to the predefined array then target and fire upon the player if that uuid is not in my array. I have searched and searched for something similar with no luck, I realize that asking the community to do all the work is a bit selfish but I really have no Idea what I am doing and figured this would be the best place to start. Any input, scripts or help is greatly appreciated. Sincerely , WikedBubble :confused: -
Get AI unit to Shoot Payer uuid not in my clan array?
WikedBubble replied to WikedBubble's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
twirly, I am glad you have decided to point me in the right direction and I look forward to being and active member in these forums. After a bit of reading I have realized that you are right, MP is def. not the place to start. Either way at least I have a starting point and I look forward to any other help being provided here. If any one else wants to chime in with their two cents I am willing to listen. Bubble -
Get AI unit to Shoot Payer uuid not in my clan array?
WikedBubble replied to WikedBubble's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
ya that doesn't seem to work, could be my trigger though, i'll keep trying, thanks again ---------- Post added at 21:19 ---------- Previous post was at 19:47 ---------- Hey so I tried putting "_uidarray = ["123456","654321","456789"]; if (not (_unit in uidarray)) then {_unit addrating -10000};" in the On Act. of an area trigger replacing "123456" etc with my own uid's and receive "Local variable in global space". I then tried creating an sqs. file with the code and had the trigger call to it from On Act. with [this] exec "scripts\admins.sqs". and it doesn't seem to do anything, like I said I am very new to this and have no Idea what I am doing, is this how you would activate it with a trigger or am I being completely stupid. twirly If you don't mind helping a bit more how would you go about introducing "addrating" into your missions? Bubble ---------- Post added at 22:01 ---------- Previous post was at 21:19 ---------- So after more reading it looks like .sqf files work better so I did similar to above and put this in the On Act. of my trigger nul = [this] execVM "scripts\admins.sqf" but still no luck. I am reading through the tutorials and things but it is going to take me a while to educate myself. Any input is helpful, thank you in advance. -
Get AI unit to Shoot Payer uuid not in my clan array?
WikedBubble replied to WikedBubble's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
Sweet, I will try this, from the looks of it I can put this in an area trigger? So when a player enters the area his addrating is reduced to enemy if he is not in the array correct?