Jump to content
🛡️FORUMS ARE IN READ-ONLY MODE Read more... ×

UltimateBawb

Member
  • Content Count

    250
  • Joined

  • Last visited

  • Medals

Everything posted by UltimateBawb

  1. UltimateBawb

    Respawning as empty Unit

    Thanks so much! No way I would've figured that out without you :D
  2. I'd like to make it so when you respawn, you have no weapons. I know how to do this to an already spawned unit, but am not sure how to script a "hypothetical" unit.
  3. Documents > ArmA 2 > MPMissions Open the mission folder that you are editing. Create a file called "init.sqf" (the extension must be .sqf). Paste the Init.sqf part of your script in the init.sqf. Paste the second part of the script into the init box of any vehicles you want to use it. EDIT: I'm not really sure if that's what you needed... if not, please say so.
  4. UltimateBawb

    Respawning as empty Unit

    That doesn't seem to work either. That's all I should need, right?
  5. UltimateBawb

    Respawning as empty Unit

    Where do I put that? If I put it in the description it crashes... :/
  6. UltimateBawb

    Respawning as empty Unit

    How exactly do I use that? I placed this in my init.sqf but no luck... player addMPEventHandler ["MPRespawn", {removeAllWeapons this; clearMagazineCargo this;}]; I also tried calling a script to clear the weapons, but that didn't work either. How do I use event handlers?
  7. Whenever I run this script, it ignores sleep and runs infinitely fast. _pay = 50; #pay sleep 0.5 player groupChat format ["You have recieved a paycheck of $%1", (_pay)] money = money + _pay player groupChat format ["You now have $%1", (money)] Goto "pay";
  8. UltimateBawb

    Sleep Issues

    Thanks... why are there two languages though? And what are the advantages of each?
  9. UltimateBawb

    Sleep Issues

    No, it's SQF. And I used if (side player == west) then {[] exec "pay_US.sqf"}; to call it.
  10. Whenever I spawn a vehicle, no matter where the placholder is pointed, the vehicle always faces 0 degrees North. How can I change this?
  11. I just tested a mission with a friend in which you can buy weapons. Everything worked fine, except when he would try to get a weapon from a crate that it spawns in. I'm assuming this is because the friend is client-side and the box is server-side; how can I fix this?
  12. If I use objects like "player" to give someone something, will that mess up in multiplayer and treat everyone in player? If so how would I discriminate between players?
  13. UltimateBawb

    Quick MP vs. SP Question

    Ok, thanks a lot guys. :) Just to be safe, though, whenever I use the "player" object, it only runs on the computer that activated that script, correct?
  14. UltimateBawb

    Quick MP vs. SP Question

    So how would I make the player object local? I read the wiki's and they seemed to show how to check if something if local, not set it to local.
  15. I'm trying to make a system where you can hire a unit and have it spawn near and be automatically added to the player who hired him. I've tried this, but with no luck: _unit = group player createUnit ["GER_Soldier_EP1", position player, [], 3, "FORM"] Can anyone help?
  16. Working on a simple buying system with triggers, IE you get close to something and it adds a buy option to the action menu. How do I remove the same action? I've tried: player removeAction ["Buy M4A1 ($1000)", "buyM4A1.sqf"]; But I receive errors: Type Array, expected Number
  17. I'd like to be able to spawn a vehicle by using a action menu item. All I need to know is how to trigger the spawn of the vehicle through an sqf. Being repeatable would be huge, too.
  18. UltimateBawb

    Where do I put the .sqf files?

    Just fiddled around with it and it works now. Thanks guys. :)
  19. UltimateBawb

    Where do I put the .sqf files?

    Like this? C:\Users\Jack\Documents\ArmA 2\MPMissions\Shapur.Shapur_BAF\buyM4A1 That doesn't work.
  20. I was wondering if it's possible to press a button and have a custom menu appear. I'm new to scripting, and I only know the basics. Help would be appreciated. Also, how do I script outside of the init boxes?
  21. UltimateBawb

    removeAction Help

    *facepalm* Thank you so much, I never would have thought of that! :D
×