Search the Community
Showing results for tags 'parameter'.
Found 5 results
-
Hey guys. I'm hoping you can help me shed some light on the selection parameter in addAction. This is what I'm trying to achieve: When approaching the object (Dual Monitor on stand) 2 actions are available. I want the actions to be fixed to each screen so when looking on the left screen only the left screen's action is available and vice versa. The object in question is the "Land_TripodScreen_01_dual_v1_F". I'm been trying to use the addAction selection parameter to do this but the actions does not want to show up. Now my primary guess is that the selection names I'm using aren't correct but I can't for the life of me figure out how to find them. The config shows hiddenSelections to be "Screen_1" and "Screen_2" and selectionNames provide the same but in lower case. I've tried HandleDamage and HitPart to no avail and I've even resorted to guessing a few variations too: screen1, monitor1, monitor_1, etc. Here's the code I'm currently running: So you guys know anything else I can try to get the selection parameter to behave. If not any ideas for a workaround? I've played with the idea of using the intersect family but, unless I've missed one, none of them return the selection. Maybe I need to go the whole hog and approximate each screen in model space and then do some fancy math to check it against the camera vector? Could be expensive for an addAction condition though. Thanks.
-
Very strange crash and parameters on launch.
Lyttbacka Farmskins.com posted a topic in ARMA 3 - TROUBLESHOOTING
Hey. So i've been trying to contact support the last couple of days, but it just says "Recaptcha field is required" every time i try to send my message. I am desperate for help, so i'm just gonna write my message here instead. I hope you guys don't mind. Here it goes: Hello. Since a few weeks back i have been having troubles with the game launching from an incorrect file and with unwanted parameters. Normally, the game launch like normal and if you hover over the Arma 3 shortcut it says 'Arma 3'. In my case, it says "Arma 3 "C:\Program Files (x86)\Steam\steamapps\common\Arma 3\Arma3_x64.exe" -skipIntro -noSplash -window -skipIntro -mod= -beservice". I have put on nosplash and skipintro, but that's it. I have uninstalled every single mod on my pc, i have reinstalled the game, i have restarted my pc and i have tried to wipe the parameters, which i can't since it says i have none activated in the first place. I'll try my best to explain the problem. I launch my game, once the exe has opened it shows the 'Arma 3 Apex' loading screen. Normally the game starts and you can start playing after that screen is showed. For me, however, it goes into a black screen and the blue circle logo starts appearing. Basically, my game has crashed. It doesn't matter how long i wait, it still doesn't load. I am absolutely grateful for any help i can get regarding this issue. With regards, Isak. Edit: I'll provide some screenshots to show you what it looks like. https://gyazo.com/6b6cfbe1f4a448da05a0dbac8deac094 https://gyazo.com/250870d9c2cd3a88b94558cabc2d028e https://gyazo.com/d08aef488ff817a2dacb1043369327c1 -
Help with making a Lobby Parameter to call a script or not
4-325Ranger posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
I'm trying to make a Lobby Parameter for a mission where the player can select to enable a script or not. It is set as disabled by default. The script is VCOMAI, I want the player/group to have the option of playing the mission on an easier vanilla setup and also be able to play the mission with a more challenging AI. I've tried a few things, but have not found anything definitive. I need to set up the parameter (class params?) and then set up the call for it (in the init.sqf?). I came up with this, that I put in the description.ext: class Params { class VcomAI { //paramsArray[0] title="VcomAI"; values[]={0,1}; texts[]={"Disabled - meh","Enabled - Bring it on"}; default=0; }; }; but couldn't figure out how to call it from the init.sqf. I'm sure the paramsArray[0] is wrong, but I was trying to follow an old older script - meh... I also looked at a copy of Liberation, as they have several Lobby Parameters, however they are using some scripting that I don't quite follow with .hpp setups etc that are beyond me at this point. Any suggestions? Thanks!- 3 replies
-
- parameter
- lobby parameter
-
(and 2 more)
Tagged with:
-
[Solved]RespawnDelay in Mission Parameter
kohara_02 posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
Hello, I'm trying to put the RespawnDelay value in the Mission Parameters so I can change the duration anytime before I start the game. I'm currently trying to use this function BIS_fnc_setRespawnDelay(https://community.bistudio.com/wiki/BIS_fnc_setRespawnDelay) as it says that it can "set" the respawn delay value. This is what I have. description.ext {// 22 title = "Respawn Delay"; values[] = {5, 30, 60}; texts[] = {"5","30", "Default(60)"}; default = 60; } init.sqf(not sure if I should put this in initServer or initLocalPlayer) Also the "Hint" in this code is just a tester seeing if I'm really getting the value coming from the params. _respawnCounter = "respawncounter" call BIS_fnc_getParamValue; hint format ["Respawn Delay %1", _respawnCounter]; [{_respawnCounter < 60}, 30, ""] call BIS_fnc_setRespawnDelay; Huge thanks to whoever helps. Update: Apologies for having multiple threads going up because of me, I didn't know that the other threads will be bumped up the list due to my reply. Anyways after fiddling with my code and tried searching for some related topics to this I found out that adding an event handler would do the trick and by making the Variable into a public instead of a private made it work also I used the setPlayerRespawnTime instead of the BIS_fnc_setRespawnDelay(this seems to be not working for me even though I tried putting my variable into a public). respawnCounter = "respawncounter" call BIS_fnc_getParamValue; hint format ["Respawn Delay %1", respawnCounter]; if (respawnCounter != 60) then { player addEventHandler ["Killed",{setPlayerRespawnTime respawncounter}]; } But if anyone has a shorter or better version with the same concept, feel free to share it here.- 2 replies
-
- respawndelay
- parameters
-
(and 2 more)
Tagged with:
-
Having Weather / Time Parameters in Multiplayer - Debug
sekh765 posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
So I've been trying to follow the various threads on this topic, but I'm not the greatest at figuring out just where I messed up in my script. I am trying to have my players be able to set the mission time / weather parameters before beginning. Could someone take a look and tell me how to repair it? I get weather parameter working, but the time one won't kick in. Then I can get time working, but weather won't kick in. This is the description.ext class Params { class initialWeatherParam { title = "Starting Weather"; values[] = {0,1,2,3,4}; texts[] = {"Clear","Overcast","Rain","Fog","Random"}; default = 4; }; class TimeOfDay { title = "Time of Day"; values[] = {-6, 0, 8, 13}; texts[] = {"Morning", "Clear day", "Sundown", "Night"}; default = 0; }; }; Here is my init. I think this is where I am lost? weather = paramsarray select 0; timeofday = paramsarray select 1; execVM "briefing.sqf"; execVM "randomWeather2.sqf"; I'm using the RandomWeather2.sqf script from here - http://www.armaholic.com/page.php?id=24614 Any help would be appreciated.