FederalRazer89
Member-
Content Count
84 -
Joined
-
Last visited
-
Medals
-
-
Have been enjoying this gamemode in single player. But when i save in single player scenario or a lan hosted version, the warlords options to buy,vote and fast travel will disappear when reloading the save after reloading the game. Would be nice if this gets addressed.
-
[Script] Copy a units loadout
FederalRazer89 replied to NeoArmageddon's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Oh sorry More or less does the same thing as "setUnitLoadout", atleast acording to the commands wiki. Going to try use tomorrow and see what happens with "setUnitLoadout". -
[Script] Copy a units loadout
FederalRazer89 replied to NeoArmageddon's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Well my script is mostly for use when you want to unstuck AI squad mates, especially when the AI refuses to move or react. But damn if google hade found command "setUnitLoadout" then i would have saved about 4 hours. But i guess i learnd something new. -
[Script] Copy a units loadout
FederalRazer89 replied to NeoArmageddon's topic in ARMA 3 - MISSION EDITING & SCRIPTING
I tried your script and i dont get any of the attachments for for the weapons, but just added the command "primaryWeaponItems" and some other stuff to complement the script. My script: (Unstuck AI) Because i am too lazy to try and integrate those commands in your script i am just adding them after you script is done. -
Rounding is replacing a number with any
FederalRazer89 replied to FederalRazer89's topic in ARMA 3 - MISSION EDITING & SCRIPTING
I am not sure if some people misunderstood my intentions then i am sorry. Dont mean to offend anybody, but either way i got some ideas from this disscutions and made a bit better version of my previous script. Will post it below for anyone intressted in this sort of script. Still a work in progress. The new script: A bit slow but it will only be used once so its not problem for my type of mission. -
Rounding is replacing a number with any
FederalRazer89 replied to FederalRazer89's topic in ARMA 3 - MISSION EDITING & SCRIPTING
10. But if i can use the metod that i am trying to use then, i will be able to be more flexible for me in the future. I want some level of control but its not necessary to be weighted, just that it needs to be random. But i got some ideas i am going to try after work. -
Rounding is replacing a number with any
FederalRazer89 replied to FederalRazer89's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Sorry forgot about that. Trying to chose random elements from array FED_CampPos_Array which hold positions. Problem is that selectrandom some time causes multiple markers to chose the same position, even when i try to compare with the this: That way it will restart the selections process if any of them are too close to each other. So mabye if they have the same positions the distance command dont work that well, but i dont know. I am fairly new to scripting. -
Rounding is replacing a number with any
FederalRazer89 replied to FederalRazer89's topic in ARMA 3 - MISSION EDITING & SCRIPTING
I have checked if the array is defiend counts about 30-40 elements, another script that need to generate the locations before this script is executed. And if you defiene the array with just some random numbers then you can test it yourself. Example: Copy if you want to see the results. It will output "any" and the 10 chosen values of the array. if you copy this in to arma and execute it, then it will show that _campPos1 that will output "any" and the content of FED_CampPos_Array. In this example FED_CampPos_Array is already defined it will be possible to replicate without any problem. Got something i will try something when i get back from work. -
Rounding is replacing a number with any
FederalRazer89 replied to FederalRazer89's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Well i make a lot of mistakes, and that have made me learn new stuff. it happens. -
Rounding is replacing a number with any
FederalRazer89 replied to FederalRazer89's topic in ARMA 3 - MISSION EDITING & SCRIPTING
True I have tried "round" and "floor". But of both of them should achieve similar result, which is enough for my usage. -
Rounding is replacing a number with any
FederalRazer89 replied to FederalRazer89's topic in ARMA 3 - MISSION EDITING & SCRIPTING
here -
Rounding is replacing a number with any
FederalRazer89 replied to FederalRazer89's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Tried it but the array size didnt decrese, and apperantly the loop hit the limit that i put in place. Can it be because its a global array? -
Rounding is replacing a number with any
FederalRazer89 replied to FederalRazer89's topic in ARMA 3 - MISSION EDITING & SCRIPTING
I am sort of trying to use a random element, but i want to test it so i am sure that it is not the same as the others. When i used the selectRandom directly there would be serveral instances of the same position for multiple markers. What would be the right syntax for the round command? I used this before, but will rewrite it. -
Rounding is replacing a number with any
FederalRazer89 posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
I am have been working on a script that can find a position in cities and villages as away to randomly generate positions in populated areas. Now that i found a way to make it a bit more effectiv, i get a problem with the rounding commans like "floor" and "round". When i use hint to check what the varible outputs it say "any". I need to be able to round the numbers to select which position to place markers. The rest of the script can randomly generate position, but is a bit limited and is somewhat susceptible to multiple markers on same position. Part of the script: I know a way that i could make this without the "floor" or "round" functions but it weird that it dosent work. Is this a bug or did i use the functions wrong? I am lost on this so any suggestions would be appreciated. -
Need help with a scavenging script for AI
FederalRazer89 replied to FederalRazer89's topic in ARMA 3 - MISSION EDITING & SCRIPTING
You could create one sqf dokument and copy the function first and at the bottom of the dokument insert the init. Then you will have to activate it with the metod of your chose. Untill they fix this bug or i find a way to workaround it this will only work with dead bodies. To make it easy for you copy this into a sqf dokument, then use some command like addaction or radio trigger to activate this script. Then depending on how you want to use it, you might want to use execVM or spawn. ------------------------------------------------------------------------------------------------------------------------------------------ exemple: [ ] execVM "Rootdirectory\Rearm" ; or fn_Rearm = compile preprocessFileLineNumbers "Rootdirectory\Rearm.sqf"; [ ] spawn fn_Rearm; ------------------------------------------------------------------------------------------------------------------------------------------ if you have it in the mission folder and not in any sub folders then the path should be like this: [ ] execVM "Rearm" ; or fn_Rearm = compile preprocessFileLineNumbers "Rearm.sqf"; [ ] spawn fn_Rearm; ------------------------------------------------------------------------------------------------------------------------------------------ If you want to use a radio command then: With execVM _trg = createTrigger ["EmptyDetector", [0,0,0]]; _trg setTriggerActivation ["ALPHA","PRESENT", true]; _trg setTriggerStatements ["this", '[ ] execVM "Rootdirectory\Rearm";',"sleep 1" ]; 1 setRadioMsg "Rearm"; With spawn _trg = createTrigger ["EmptyDetector", [0,0,0]]; _trg setTriggerActivation ["ALPHA","PRESENT", true]; _trg setTriggerStatements ["this", '[] spawn fn_Rearm;',"sleep 1" ]; 1 setRadioMsg "Rearm"; ------------------------------------------------------------------------------------------------------------------------------------------ I am not sure how much you know about scripting but i am going to work and will be gone for some time so i decided to give these exemples of how to use it.