

UltimateBawb
Member-
Content Count
250 -
Joined
-
Last visited
-
Medals
Everything posted by UltimateBawb
-
Respawning as empty Unit
UltimateBawb replied to UltimateBawb's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
Thanks so much! No way I would've figured that out without you :D -
Respawning as empty Unit
UltimateBawb posted a topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
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. -
MP/vehicles do not respawn to start the mission
UltimateBawb replied to Guntz's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
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. -
Respawning as empty Unit
UltimateBawb replied to UltimateBawb's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
That doesn't seem to work either. That's all I should need, right? -
Respawning as empty Unit
UltimateBawb replied to UltimateBawb's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
Where do I put that? If I put it in the description it crashes... :/ -
Respawning as empty Unit
UltimateBawb replied to UltimateBawb's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
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? -
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";
-
Sleep Issues
UltimateBawb replied to UltimateBawb's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
Thanks... why are there two languages though? And what are the advantages of each? -
Sleep Issues
UltimateBawb replied to UltimateBawb's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
No, it's SQF. And I used if (side player == west) then {[] exec "pay_US.sqf"}; to call it. -
Turning a vehicle with script
UltimateBawb posted a topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
Whenever I spawn a vehicle, no matter where the placholder is pointed, the vehicle always faces 0 degrees North. How can I change this? -
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?
-
Quick MP vs. SP Question
UltimateBawb posted a topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
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? -
Quick MP vs. SP Question
UltimateBawb replied to UltimateBawb's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
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? -
Quick MP vs. SP Question
UltimateBawb replied to UltimateBawb's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
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. -
Adding a Unit to a certain player's Group
UltimateBawb posted a topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
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? -
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
-
Spawning a Vehicle on Event
UltimateBawb posted a topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
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. -
Where do I put the .sqf files?
UltimateBawb replied to UltimateBawb's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
Just fiddled around with it and it works now. Thanks guys. :) -
Where do I put the .sqf files?
UltimateBawb replied to UltimateBawb's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
Like this? C:\Users\Jack\Documents\ArmA 2\MPMissions\Shapur.Shapur_BAF\buyM4A1 That doesn't work. -
Scripting a Menu / Basic Help
UltimateBawb posted a topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
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? -
removeAction Help
UltimateBawb replied to UltimateBawb's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
*facepalm* Thank you so much, I never would have thought of that! :D