Amazed
Member-
Content Count
17 -
Joined
-
Last visited
-
Medals
Community Reputation
0 NeutralAbout Amazed
-
Rank
Private First Class
-
[QUESTION]Are dynamic identifiers for publicVariables possible?
Amazed posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
Hi! I am trying to avoid race conditions in a mp scenario by assigning each client a separate publicVariable it can broadcast to. I know you can have dynamic identifier names for variables like so: _MyVariable = 20; _MyVariableContent = "MyContent"; call compile format["MyDynamic_%1=_MyVariableContent",_MyVariable]; source: http://tactical.nekromantix.com/wiki/doku.php?id=arma:scripting#dynamic_variables What I came up with so far is this: _varIndex = 1; _varContent = "blabla"; publicVariable "" + format ["dynPubVar_%1=_varContent", _varIndex]; Sadly this seems to be not working. Any ideas? -
[QUESTION]Iterating over all properties of objects/using reflection?
Amazed posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
Hi! I have been looking for a way to iterate over all properties of any given object in order to get k,v-pairs of those. Things like the capacity of a container or the size of a magazine. I have been looking for hours but I couldn't find anything. Does SQF have some sort of reflection maybe? Thanks guys! -
Add "hit" eventhandler to arbitrary objects (like a char eg) - That possible?
Amazed replied to Amazed's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
Where can I find that skeet disk? -
Add "hit" eventhandler to arbitrary objects (like a char eg) - That possible?
Amazed replied to Amazed's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
Yup red barrel works. init barrel: this addEventHandler ["HandleDamage", {_this execVM "hint.sqf"}]; hint.sqf: hint "damage"; sleep 2; hint ""; _this setDamage 0; But execution halts after I use "_this". So the same script written like this only works up the the "_this": hint "damage"; _this setDamage 0; sleep 2; hint ""; Why is that? Oh also what is the smallest object you know that has a hit model? :) -
Hey! I am trying to add "hit" EventHandlers to arbitrary objects to monitor for damage/hits received. What I tried: init line of object: this addEventHandler ["Hit", {_this execVM "hint.sqf"}] hint.sqf: hint "hit"; Works on pop-up targets but won't work on a barrel. What am I doing wrong? Thanks in advance!
-
Make Player Aim at Certain Position - that possible?
Amazed replied to Amazed's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
Yup this definitively has an effect. Just have to figure out the values. Here is an in-depth discussion: http://forums.bistudio.com/showthread.php?88977-SetVectorDirandUp-Usage-Solved&p=1470985#post1470985 -
Determine Object Dimensions(Width,Depth,Height) - That possible?
Amazed replied to Amazed's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
Hm that changes the game. Well do you know of any objects that are exactly 1m tall and present one continuous area at that side? And while we are at it how can I make any object receive damage and test for it? For example every time I hit an object I want a hint to be triggered. What I tried: Init field of object: this addEventHandler ["Hit", {_this execVM "hint.sqf"}]; hint.sqf: hint "damage"; Seem to only work with pop-up targets. -
Make Player Aim at Certain Position - that possible?
Amazed posted a topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
Hi Guys! I am setting up a testing environment and I need the (human) player to aim at a certain position dead-on. Is there a way of doing that? Also can I make the player fire by any command? Seems "lookAt" only works for AI. Thanks in advance fellows! -
Determine Object Dimensions(Width,Depth,Height) - That possible?
Amazed replied to Amazed's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
Thanks guys! You are quite the helpful crowd! :) -
Determine Object Dimensions(Width,Depth,Height) - That possible?
Amazed replied to Amazed's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
Thanks man! Now I got this result for an object: [[-0.318,-0.251953,-0.757122],[0.318,0.251953,0.757122]] Does that mean the height of the object is |Ymin| + Ymax or in numbers ~1.5m ? -
Hey! I am looking for a way to determine the dimensions of arbitrary objects (in meters). The script commands apparently only retrieve the position of objects relative to the map. Does anybody know how? Alternatively a list with all object dimensions would do the trick just as well. When push comes to shove I would content myself with a 1m tall object. :) Thanks in advance!
-
Any way to disable weapon sway quick and dirty for testing?
Amazed replied to Amazed's topic in ARMA 2 & OA : ADDONS - Configs & Scripting
Thank you very much! Just what I was looking for. -
Any way to disable weapon sway quick and dirty for testing?
Amazed posted a topic in ARMA 2 & OA : ADDONS - Configs & Scripting
Hi! Is there any way to disable the weapon sway quick and dirty ? Tried a few things without any success. Need to eliminate sway for testing. Thanks! -
ArmA2 / OA (low) performance issues
Amazed replied to R3fl3x's topic in ARMA 2 & OA - TROUBLESHOOTING
Thank you for your advise. What about view distance? Whats a good deal considered in that department?