-
Content Count
2494 -
Joined
-
Last visited
-
Medals
Everything posted by sarogahtyp
-
true, but what if you use a variable assignment instead? { _d = { } count array; } count array2;
-
Exception Handling use in ArmA
sarogahtyp replied to ZaellixA's topic in ARMA 3 - MISSION EDITING & SCRIPTING
absolutely true for arguments u need params only and sometimes typeName is usefull.- 3 replies
-
- 1
-
- exceptions
- throw
-
(and 1 more)
Tagged with:
-
Trying to create a module in the air using createUnit
sarogahtyp replied to Comrade Cheeki Breeki's topic in ARMA 3 - MISSION EDITING & SCRIPTING
not tested but you could try to not use the alternative syntax of createUnit and set option "special" to "CAN_COLLIDE". -
getobjecttextures Action Boolean
sarogahtyp replied to ozdeadmeat's topic in ARMA 3 - MISSION EDITING & SCRIPTING
this . . . _fullpath = toLower(getObjectTextures _obj select _n); _return = if(_fullpath == _checkpath) then {true} else {false}; _return }; is the same as this: . . . _fullpath = toLower(getObjectTextures _obj select _n); (_fullpath == _checkpath) }; -
need help with distance2D from player to op4
sarogahtyp replied to 3l0ckad3's topic in ARMA 3 - MISSION EDITING & SCRIPTING
params wiki entry: -
I don't get what u r missing. allAirports should give u all those IDs
-
force AI Pilot deploy flares \ countermeasures
sarogahtyp replied to omri2050's topic in ARMA 3 - MISSION EDITING & SCRIPTING
show your code pls. -
Is it possible hide the gps when the player is aiming?
sarogahtyp replied to VulturARG's topic in ARMA 3 - MISSION EDITING & SCRIPTING
code should be okay for MP as long as it is executed on each player client. -
[Release] Virtual Arsenal Shop System
sarogahtyp replied to 7erra's topic in ARMA 3 - MISSION EDITING & SCRIPTING
in config.sqf you can set which variable name (and nameSpace) is used for the amount of money a player has. you can easily use it to inform the players in your mission about their balance. -
I guess it just lands where you told it to with the landAt command. setAirportSide/airportSide is just to set/identify who owns the airfield. what the mission designer does with that information is his own choice.
-
allAirports
-
you could check vectorDir or vectorUp description of those vectors can be found in setVectorDirAndUp
- 1 reply
-
- 1
-
AddEventHandler to Classname-Object
sarogahtyp replied to Alert23's topic in ARMA 3 - MISSION EDITING & SCRIPTING
this line: {if (typeOf _x == "Land_VR_Target_Dart_01_F") then checks if the classname of the OBJECT _x is Land_VR_Target_Dart_01_F and this line _x addEventHandler ["HitPart",{ applies an event handler to the OBJECT _x. But how knows your script which object is meant? _x has to be an existing object of your mission! EDIT: maybe your object(s) are simple objects then you could get it with this command: allSimpleObjects Example 1 there shows the usage. Also please check the syntax of each command which u try to use in the wiki. there are usage examples and it's always explained which parameters are needed and what the command does or returns. Especially in ur current script u r using wrong syntax for spawn. check it in the wiki! -
AddEventHandler to Classname-Object
sarogahtyp replied to Alert23's topic in ARMA 3 - MISSION EDITING & SCRIPTING
what is _x in here?: {if (typeOf _x == "Land_VR_Target_Dart_01_F") then { _x addEventHandler ["HitPart",{ I don't see a definition of it or a loop which magic variable it is. Also check your .rpt file always ... Report File Location -
beginner [BEGINNER] Whitelist Different people to many Different Slots?
sarogahtyp replied to Vesturo's topic in ARMA 3 - MISSION EDITING & SCRIPTING
This should fit your needs I guess: -
Is it possible hide the gps when the player is aiming?
sarogahtyp replied to VulturARG's topic in ARMA 3 - MISSION EDITING & SCRIPTING
initPlayerLocal.sqf should be the place cause every client machine has to run it and server does not need it -
@Toastee Report File Location
-
Teleport everyone when fired!
sarogahtyp replied to relisek's topic in ARMA 3 - MISSION EDITING & SCRIPTING
did u read ur own thread? and did you understand the discussion in there? Now after your last statement I'm mostly sure that you are a cheater but I agree with @mrcurry what do we loose? Nothing! @relisekTherefore don't cry and ask your questions. Learn scripting and get part of this kind community. Or if the only thing you are actually able to do in this forum is crying about other peoples opinion then leave please. -
Having trouble with a script to cycle through a weapon's compatible muzzles
sarogahtyp replied to AlecW's topic in ARMA 3 - MISSION EDITING & SCRIPTING
not my fault. you should check for invisible chars which u probably copied. this is a known forum bug -
Is it possible hide the gps when the player is aiming?
sarogahtyp replied to VulturARG's topic in ARMA 3 - MISSION EDITING & SCRIPTING
if (visibleGPS and cameraView isEqualTo "GUNNER") then { showGPS false; }; but idk if showGPS is able to close the GPS screen. wiki entries state´s about closing the on-map-gps-receiver of Arma 2... -
ExitWith Not Firing in Multiple If/Then Statement
sarogahtyp replied to froggyluv's topic in ARMA 3 - MISSION EDITING & SCRIPTING
THIS -
Having trouble with a script to cycle through a weapon's compatible muzzles
sarogahtyp replied to AlecW's topic in ARMA 3 - MISSION EDITING & SCRIPTING
no for loop needed: _pWeap = currentWeapon player; _muzzleSlot = getArray (configFile / "CfgWeapons" >> _pWeap >> "WeaponSlotsInfo" >> "MuzzleSlot" >> "compatibleItems"); { player addWeaponItem [_pWeap, _x]; } count _muzzleSlot; this code should do the same as yours above but without a for loop. but I don't get what u r aiming for... -
Having trouble with a script to cycle through a weapon's compatible muzzles
sarogahtyp replied to AlecW's topic in ARMA 3 - MISSION EDITING & SCRIPTING
pls don't do multiple posts with same content. maybe you want delete this cause u opened an own thread for it now... -
ExitWith Not Firing in Multiple If/Then Statement
sarogahtyp replied to froggyluv's topic in ARMA 3 - MISSION EDITING & SCRIPTING
problem could be that you are not deleting the onEachFrame "queue". Look at example 3 of the exitWith command in wiki. but I think you ll change to the MEH which larrow stated... -
ExitWith Not Firing in Multiple If/Then Statement
sarogahtyp replied to froggyluv's topic in ARMA 3 - MISSION EDITING & SCRIPTING
you have a slash in the first line after condition which should throw a syntax error?