Jump to content

Amazed

Member
  • Content Count

    17
  • Joined

  • Last visited

  • Medals

Community Reputation

0 Neutral

About Amazed

  • Rank
    Private First Class
  1. 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?
  2. 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!
  3. Hey Guys! I am looking for a quick and dirty way to disable recoil on all firearms completely for testing purposes. Are there any addons around? Thanks in advance!
  4. 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? :)
  5. 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!
  6. 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
  7. 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.
  8. 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!
  9. 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 ?
  10. 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!
  11. 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!
  12. Thank you for your advise. What about view distance? Whats a good deal considered in that department?
×