Jump to content


  • Content Count

  • Joined

  • Last visited

  • Medals

Community Reputation

0 Neutral

About DryFire117

  • Rank
  1. DryFire117

    WMO - Walkable Moving Objects

    Nope that didn't work...I'm trying to get this mod to work with the USS Freedom.
  2. DryFire117

    WMO - Walkable Moving Objects

    How would I add an object to the WMO_specialObjects array? I assume I can do it from the object's init line in the Eden editor like this: WMO_specialObjects append [this]; Buuut this doesn't seem to be working.
  3. Well this was the first thing I tried and it wasn't working, but now it is. I love programming :) I'll probably stick with this.
  4. Holy crap...this worked! Thanks a lot!
  5. Hey all, Here's my problem: I have a script that is attached to a client action called client.sqf that looks like this: // THIS SCRIPT IS ON THE CLIENTS COMPUTER // run the actual bomb arm script from the server _obj = _this select 3 select 0; if (_obj == obj1) then { //THIS SHOULD EXECUTE armObj1.sqf ON THE SERVER [[[player,_obj],"armObj1.sqf"],BIS_fnc_execVM] remoteExec ["call",2,false]; }; The issue is that this does nothing. I'm not sure how to let the client tell the server to execute this script. If I set the target argument of remoteExec to 0 it runs locally on my client but that's not what I'm trying to do here. Any ideas? Here's the flow of the situation: Client triggers action -> action calls client.sqf locally on client -> client.sqf tells server to execute armObj1.sqf from client machine -> server does execVm "armObj1.sqf"
  6. DryFire117

    !Alive commands and stamina

    I know that in the init field of a unit in the editor you must use "this". So I guess you're attaching the event handler to the actual model itself. EDIT: I checked. You do use player in initPlayerLocal.sqf.
  7. DryFire117

    !Alive commands and stamina

    It looks like it! I'm glad you mentioned that. The init boxes are great for getting started, but it makes your code less portable between different missions. Looks like I have some more editing to do ;) EDIT: Now that I think about it, I'm not sure how initPlayerLocal.sqf would work with the event handler. I guess it depends on when the script actually runs, and what "this" would be referring to.
  8. DryFire117

    !Alive commands and stamina

    Unless you use a script outside of the editor I think you'll have to stick with using the 21 ands (which shouldn't be a problem, it just looks ugly). The stamina part depends on what type of mission you're creating. Do you have respawns for the player? Is it a single player or multiplayer mission? If there are no respawns for the player (single or multiplayer) then putting "player enableStamina false;" in the init field (without the quotes) of every playable unit will disable stamina. If there are respawns in a single player game, then put this in the init field of the playable unit: player enableStamina false; this addEventHandler["respawn",{player enableStamina false;}]; If this is a multiplayer game with respawns then put this in the init field of every playable unit: player enableStamina false; this addMPEventHandler["mprespawn",{player enableStamina false;}]; I know this works because I just solved this issue for myself a couple hours ago :)
  9. DryFire117

    exec or execVM? Call or Spawn?

    I'd try something similar to this: _helipad = "Land_HelipadEmpty_F" createVehicle [0,0,0]; _helipad attachTo [player, [0,30,0]]; // The second argument is the offset from the player _helipad say3d ["sounds\crying.ogg",30,1] So the sound will follow the player, and when the sound is done playing (or if you want to end it early) all you have to do is: deleteVehicle _helipad; However, it wont have the 3D positional audio effect that you're looking for. For that, the one option that sticks out to me is to compare the direction the player is facing to the direction from which you want the sound to play. Then its a matter of using the detach method on the helipad and reattaching it to the player at the proper offset. It sounds fairly complicated, but I'm a noob so there's probably a better way to do this!