Jump to content

Orion987

Member
  • Content Count

    24
  • Joined

  • Last visited

  • Medals

Everything posted by Orion987

  1. Hello. I am sorry if this has been asked/answered before, but I could not find anything on it. I am trying to run a script when the user presses a certain button (maybe "\" for example). The reason I am not just using addAction to have it on the scroll menu is because it is a respawn script, and it is accidently pressed from time to time, which is very annoying. Is there anyway to map a key to a script? Or is there a way to add it to one of the F1-F8 menus, that would be fine too. The player is not always the squad leader which is why I am not using radio triggers. Please tell me if I left out anything important. Thanks!
  2. Hello. I was wondering if there was anyway I could get the multiplayer framework working on Arma 3 so I could make RE calls. Is there anyway I could do this? I have already tried manually creating the module, but the "\ca\modules\MP\data\scripts\MPframework.sqf" I used in Arma 2 no longer seems to exist in Arma 3 (after looking around in the AddOns folder, I noticed that 'modules' is now 'modules_f', however, changing to that doesn't work either. Thanks!
  3. A mod/addon that allows a variety of new functions, tools, and other things for mod/mission makers to use. Many popular mods required it in Arma 2, and will likely be the same in Arma 3.
  4. Great find! Thanks Tonic. I tried using the removeGoggles script but that didn't work at all.
  5. I'm running into the same problem. Trying to write my own respawn script, if I setPlayer after a player dies then he does take control of the unit but the screen fades black. Any help would be appreciated.
  6. Orion987

    Multiplayer Framework

    Edit: Just editing over this post to update it. Anyway... I am running this in my init.sqf myFunction = { hint "Hello World!"; }; if (isServer) then { [[],"myFunction",true] spawn BIS_fnc_MP; }; I am getting the hint on the server, but not the client. I don't understand why, since that true parameter should execute the code on clients as well. Putting a publicVariable "myFunction" before the BIS_fnc_MP call does not help either. ---------- Post added at 10:24 PM ---------- Previous post was at 09:24 PM ---------- Figured it out. Since the spawn function was being called on the clients computer, it was being run in parallel to the server, which had to do more work, so the client was executing the code first. Using a 'waitUntil' command worked fine (but I did need to declare publicVariable for the function). Thanks so much neokika!
  7. Orion987

    Multiplayer Framework

    Could I define a function to call a script? For example myFunction = { [] execVM "myscript.sqf"} Would that call the function from the client computer then if I ran my previous code (with "myFunction" instead of "myscript.sqf")? Edit: I tried to do this with the following code, which is not working either... _func = {[] spawn "myscript.sqf"}; [[],"_func",true] spawn BIS_fnc_MP;
  8. Orion987

    Multiplayer Framework

    I saw that , so I tried running [[],"myscript.sqf",true] spawn BIS_fnc_MP; on the server. However, it doesn't execute the given code (Just a hint statement) on either the server or the client. Any ideas? Edit: Is it because "myscript.sqf" isn't technically a function? If so, do I have to compile it first or something?
  9. Orion987

    Unit initscript for flashlight

    Does anyone know a way to force the flashlights on? I want to have a patrol walking around in safe mode (so they look casual) but they won't use their lights until they enter combat mode, where they obviously don't look casual.
  10. Orion987

    Multiplayer Framework

    I seem to be having trouble with this code. If I execute this on the server, shouldn't both the client and the server see the hint "WORKING"? I am not getting the hint on the client or the server when I run this. Thanks if (isNil "RemExCode") then { RemExCode = [{}, []]; publicVariable "RemExCode"; }; "RemExCode" addPublicVariableEventHandler { private["_this","_code","_params"]; _this = _this select 1; _code = _this select 0; _params = _this select 1; _params call _code; }; RemExCode= [compile "hint 'WORKING'" ,[]]; publicVariable "RemExCode";
  11. I saw the BIS_fnc_MP script, but it doesn't appear to work the way I'm using it. I tried [[],"myscript.sqf",true] spawn BIS_fnc_MP;, but the code doesn't seem to be executing on me (server) or the client. Everything around that script is though, I have hints both before and after it. It's under A3/MP btw. Edit: I have a thread up for this, so please ignore this here where it's now out of place. Anyway, Excellent work guys! http://forums.bistudio.com/showthread.php?147854-Multiplayer-Framework&p=2316367#post2316367
  12. Any estimates on how long it will be before the functions (more specifically, the CBA_fnc_globalExecute function) will be working? Thanks for the great work!
  13. They have one going at armaholic too that you could get some from (I'm assuming that's allowed, sorry to waste your time if it's not for whatever reason) http://www.armaholic.com/forums.php?m=posts&q=20801
  14. in the init line of unit put.... this addPrimaryWeaponItem "acc_suppressor"; I think that was it anyway, sorry its untested, but hopefully that was it ---------- Post added at 06:57 AM ---------- Previous post was at 06:54 AM ---------- nvm just looked, its ......... this addPrimaryWEaponItem ""muzzle_snds_H"
  15. Is there anyway to make the AI drive a vehicle when you are the gunner/commander. In many vehicles the gunner and commander appear to be the same position and I would like to just shoot while the ai drives. Instead, as it currently is, I have to tell him FORWARD, LEFT, and that while I shoot. I apologize if this has been answered before, I could not find any actual answers. Thanks! Edit: I noticed that when I'm the commander and I don't tell him to move, he will occassionally go to a waypoint on his own. Is there any way to disable the player from being able to say FORWARD, LEFT, and those commands, or to give the commander control to the driver? Thanks!
  16. I have turned off extended map info, and am using a script to create and move markers displaying the location of all units on the map for a game type I am working on. This is working fine, the units come up as colored dots on the map as they should. However, I would like to make it display text when you hover over the unit on the map, similarily to when you hover over reported enemies or allies on the map with extended map info on. Is there anyway to do this? I do not want it to display text all the time, like setting the text field of a marker would do. Please let me know if I am unclear or am missing any important information. Thanks!
  17. I thought about that, and I have the main map as a control. Im assuming it can't be as easy naming markers (not using the text field) and using this function to get the name of the the marker. I don't really understand what ctrlMapMouseOver does. It says it returns an array that is a description of the map sign the mouse is over, but I have no clue what that means. Is the description just the name of the location/marker?
  18. Thank you both very much! I am having one more problem that doesn't really deserve its own thread. I am trying to spawn a module only when a certain variable is true (which is set initially in a unit). I set the variable to true, and in the condition of presence line I put (myVariable). The module doesn't spawn. However, if I put the condition of presence back to true and use hint format to check the variable in the modules init line, the variable returns true. I do not understand why this is not working. Thanks for any help!
  19. Hello. I am trying to spawn a single mortar and fire it at a position. I am using the following code... _artyMan = _grp createUnit [(_allMen select 0), _spawnpos, [], 10, "FORM"]; _artyVehicle = (_allUnits select 0) createVehicle (_spawnpos); [_artyVehicle] call BIS_ARTY_F_initVehicle; _artyMan moveInGunner _artyVehicle; _heTemplate = ["IMMEDIATE", "HE", ((round (random 1))+0), ((round (random 2))+6)]; BIS_ARTY_Logic_INS = _grp createUnit ["BIS_ARTY_Logic", [0, 0, 0], [], 0, ""]; BIS_ARTY_Logic_INS synchronizeObjectsAdd [leader _grp]; To be clear, this is not the entire script. _grp is already defined. I am assuming my logic is wrong on what I need to synchronize? Thanks. [bIS_ARTY_Logic_INS, ((round (random 150))+100)] call BIS_ARTY_F_SetDispersion; [bIS_ARTY_Logic_INS, getPos westBase, _heTemplate] call BIS_ARTY_F_ExecuteTemplateMission; I apologize if my code is unfriendly, I am kinda sloppy... anyway, I am not getting errors, the man is spawning and moving into the vehicle (_allUnits is an array with a mortar and _allMen is an array with a soldier). westBase is about 2000 meters away, within the mortars range (100 to 3700 meters). The man does nothing though, he does not fire any rounds. If I use the same fire template on an artillery battery I set up on the map, it works fine, but my spawned units will not work. Does anyone have any ideas? Thanks! Please tell me if I left something important out.
  20. It helps very much! Thank you very much. I'm not sure if it wasn't working because I wasn't using the right side (logic or east) or if it wasn't waiting for it to be fully initialized but it is working now. Thanks too everyone that responded.
  21. If there's anymore information I should give let me know. Tell me if my problem is not clear as well. I am still unable to get it working.
  22. I have the code looking like this now, still the same thing, the man will not fire at anything. The same fire template works on artillery I make in the editor. If I use synchronizedObjects on _mortarLogic, it does return the _artyVehicle, so I guess they're synching. Anyone have any more ideas? If anyone wants I can post the entire script but it doesn't really add anything. Let me know if anyone thinks it'll help though.
  23. When you say arty, are you talking about the actual artillery vehicle or the gunner/leader of the artillery battery?
  24. I have the artillery module created a little bit after the actual artillery is created. I will try creating them right after each other and see if that works. Thanks.
×