-
Content Count
2494 -
Joined
-
Last visited
-
Medals
Everything posted by sarogahtyp
-
Write Script for unit but not in the units Init
sarogahtyp replied to Z1DDE's topic in ARMA 3 - MISSION EDITING & SCRIPTING
okay, i can confirm a hc is not part of playableUnits. -
Write Script for unit but not in the units Init
sarogahtyp replied to Z1DDE's topic in ARMA 3 - MISSION EDITING & SCRIPTING
@ZaellixA one more detail is that u r writing code for use on server and op tries it on client. (using "player"). OPs code will not work if there are some more connected clients because each client will choose a different terrorist. but again, why not using _allPlayers = playableUnits; instead of ??? -
Write Script for unit but not in the units Init
sarogahtyp replied to Z1DDE's topic in ARMA 3 - MISSION EDITING & SCRIPTING
@Z1DDE provide infos! -
Write Script for unit but not in the units Init
sarogahtyp replied to Z1DDE's topic in ARMA 3 - MISSION EDITING & SCRIPTING
huh, I made a mistake. I should have read the wiki myself before posting nonsense... I meant playableUnits: _allPlayers = playableUnits; this contains alive players without HCs + switchable Units which should not exist on MP without AI usage for Player slots... -
Write Script for unit but not in the units Init
sarogahtyp replied to Z1DDE's topic in ARMA 3 - MISSION EDITING & SCRIPTING
i guess you don't use .rpt file to watch script errors. do you? your if then statement is missing the closing curly bracket... edit: you can just use _allPlayers = allUnits; because allUnits has only alive players and no headless clients in it reading command descriptions in the wiki helps a lot -
Disable PAK through initplayerlocal.sqf Issue
sarogahtyp replied to CraveMode's topic in ARMA 3 - MISSION EDITING & SCRIPTING
huh, took a second look at your script... you cant just do two endless while loops behind each other. the second loop will never get executed at least how u do it. It can be done this way: [] spawn { while {true} do { your code }; }; [] spawn { while {true} do { your code }; }; spawn will spawn a new script and put it to script scheduler which takes care of it after that. -
Disable PAK through initplayerlocal.sqf Issue
sarogahtyp replied to CraveMode's topic in ARMA 3 - MISSION EDITING & SCRIPTING
other useful stuff: Init order event scripts Script Optimization Array Stuff just ask if u need more ;-) -
Disable PAK through initplayerlocal.sqf Issue
sarogahtyp replied to CraveMode's topic in ARMA 3 - MISSION EDITING & SCRIPTING
what I forgot to mention is that the cron manager script is designed to run server side only. therefore you can't run it on client in its current state. But you could easily delete the if (isServer) conditions on the script files to get it work on clients... -
Disable PAK through initplayerlocal.sqf Issue
sarogahtyp replied to CraveMode's topic in ARMA 3 - MISSION EDITING & SCRIPTING
one scripting goal should be to avoid to have a lots of endless while loops but what is your while loop for? maybe there is another way but idk why you need to check it every 5 seconds... A way I use to avoid multiple endless while loops is to use the cron manager script provided by @ussrlongbow. It checks every 0.5 second for jobs which need to be executed and it uses only one trigger for this. Using this I get rid of a bunch of while loops by just registering the while-content as a job. Also many while loops can be avoided by using Armas Event Handlers. Why to avoid multiple while loops? One point is that they prevent a script to get finished and therefore they may overload the script scheduler which has to handle those opened scripts. -
I need to delete units when they've reached their waypoint
sarogahtyp replied to Nope.X's topic in ARMA 3 - MISSION EDITING & SCRIPTING
this is not the same and if you need it or not you have to decide yourself... look at example 3 of the private wiki entry. with private you are able to ensure to modify an already known variable in the current scope only. means you could use a variable in a script like _cool and give it a value of 123. then you start a new scope by doing a while loop. inside of that while you could use private _cool; and then change the value of _cool to 345. as long as you are inside the while loop _cool will be 345. but if you are exiting that loop then _cool will have the value 123 as set before you entered the while loop... -
I need to delete units when they've reached their waypoint
sarogahtyp replied to Nope.X's topic in ARMA 3 - MISSION EDITING & SCRIPTING
you have to worry about it if you copy code out of forum because there are often invisible characters inside of it which cause error messages. -
Vehicles are like cats
sarogahtyp replied to 3l0ckad3's topic in ARMA 3 - MISSION EDITING & SCRIPTING
did u try to disable simulation for the vehicle and then put it on its side? -
I need to delete units when they've reached their waypoint
sarogahtyp replied to Nope.X's topic in ARMA 3 - MISSION EDITING & SCRIPTING
forum bug -
[SOLVED] Recursive Script Questions
sarogahtyp replied to Luft08's topic in ARMA 3 - MISSION EDITING & SCRIPTING
this is not really recursive because not the script starts the script again but the waypoint will start it if the waypoint gets activated. the prior script instance should have ended long before. no problems here i guess -
thisList Does Not Work without Activation
sarogahtyp replied to Firebro113's topic in ARMA 3 - MISSION EDITING & SCRIPTING
It does: https://community.bistudio.com/wiki/Eden_Editor:_Trigger -
thisList Does Not Work without Activation
sarogahtyp replied to Firebro113's topic in ARMA 3 - MISSION EDITING & SCRIPTING
show screenshots of your triggers pls or try to give more structured info... -
[SOLVED]Help with "typeOf" and LoadouI would like to give to spawned unit
sarogahtyp replied to zagor64bz's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Hey Guys, I guess you did messing around with a forum bug (invisible chars) this error message contains an invisible char: 1:42:49 Error in expression <gear.sqf"; hint "ATgear detected"; };> 1:42:49 Error position: <> 1:42:49 Error Invalid number in expression I mark it in next code bloxk with: !HERE! 1:42:49 Error in expression <gear.sqf"; hint "ATgear detected"; };!HERE!> 1:42:49 Error position: <!HERE!> 1:42:49 Error Invalid number in expression -
Respawn with loadout script?
sarogahtyp replied to CaptainDawson's topic in ARMA 3 - MISSION EDITING & SCRIPTING
this -
he ask for an eh for gear down. same question as in the linked thread ...
- 10 replies
-
Don't ask twice please. especially if you ve opened a new thread for this:
- 10 replies
-
- 1
-
Simple Low Altitude Warning
sarogahtyp replied to wogz187's topic in ARMA 3 - MISSION EDITING & SCRIPTING
add this EH to your plane this addEventHandler ["Gear", { params ["_vehicle", "_gearState"]; if {_gearState} then { if (!isNil "ALTwarn") then { terminate ALTwarn }; } else { ALTwarn = [] execVM "LowALT.sqf"; }; }]; not tested! -
[Release] Virtual Arsenal Shop System
sarogahtyp replied to 7erra's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Text is a reserved word because it's a command: text -
try setVehiclePosition:
-
that's what we understood already since u mentioned that you attached a boat to get it drivable...
-
I guess you can't turn engine of the chopper on as long as it is attached.