Jump to content

Shepard9

Member
  • Content Count

    5
  • Joined

  • Last visited

  • Medals

Community Reputation

1 Neutral

About Shepard9

  • Rank
    Rookie
  1. Hey guys! I am working on a mission which involves a cam shake for a specific duration due to cinematic purposes. It came to my attention that the number I put in for "duration" as described in addCamShake seems to be only half of the seconds I actually inserted. Can anyone reproduce this? Is this intended? And if so, why is the duration said to be seconds in the community wiki page? Greetings Shepard.
  2. Follow up: I was too stupid to initialize the addAction properly in my init, the actions I had were just relics of some testing I forgot about. After fixing the addActions my code worked like a carm. Thank you for your help tho. I was just too dumb xD. Closed.
  3. First of all: thanks for the reply @pierremgi Much appreciated. So, let me assure you, the things I want this .sqf to do are more than just one line (70 lines in the one and 245 lines in the other one) and also pretty heavy on ressources. Thanks for the reminder tho. As the actions I am performing in both of the scripts rely on spawning in units/deleting them I also have to remoteExec the code on the Server somehow. You might be right about those functions but as all of my code is really demanding and not made to run smooth at all I didnt really consider the small optimisation I could get from this improvement. Question is, how can I run my 250 lines of code on server while having it added to the addAction?
  4. Hey, I am working on a Arma3 scripting Project and stumbled upon a behavior I cant explain: [player1, [ "Action1", { params ["_target", "_caller", "_actionId", "_arguments"]; []spawn{ ["doSomething.sqf"] remoteExecCall ["BIS_fnc_execVM",2]; //This is the line where it goes wrong sleep 5; createDialog "tutorialDialog"; ctrlSetText [1001, missionNamespace getVariable ["storedString",""]]; }; }, nil, 1.5, true, true, "", "true", // _target, _this, _originalTarget -1, false, "", "" ]] remoteExec ["addAction",0]; When I try to execute the action on the unit, it creates the dialog without any issues, so I know the script is spawning in correctly, but the remoteExecCall line is not doing what it should (changing the value stored in "storedString"). If I run the line. ["doSomething.sqf"] remoteExecCall ["BIS_fnc_execVM",2]; in the debug console as Local,Global or Server it works perfectly fine. Can someone explayin to me why that is? To provide some more context: The addAction is called in the init.sqf of my mission. Thanks in advance for any replies.
×