bhaz
Member-
Content Count
588 -
Joined
-
Last visited
-
Medals
-
Medals
Everything posted by bhaz
-
Check isclass inside description.ext
bhaz replied to igneous01's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
The script he gave you is meant for an sqf file. And as far as I know, description only takes class definitions and preprocessor commands. -
trigger VS waituntil question?
bhaz replied to demonized's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
Note that the createTrigger command is local - so you can create triggers that are only present server side. Then I read this after posting. +1 pointless post. :D -
trigger VS waituntil question?
bhaz replied to demonized's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
Don't think you could pull something like that off without a forEach to test every unit on the side - forEach can be very CPU hungry in large doses - so the trigger is likely the way to go for performance in this case. For your average check though, a waitUntil would be the better option unless you need a response right away, since the 0.3ms delay doesn't apply to triggers. Reference: Code Optimisation -
In the above examples, it's used to pass parameters into the script. ie: [car] execVM "myScript.sqf" and inside the script you may see: _car = _this select 0; Works in plenty of places, including spawn - to try and describe it as simply as possible - it's used to send references to objects or extra details the script otherwise couldn't access without your help; The script doesn't know which car you refer to unless you tell it. The [] symbols in general refer to an array.
-
Skip loading of background movies...
bhaz replied to megagoth1702's topic in ARMA 2 & OA - BETA PATCH TESTING
Once you load an island (editor, mission etc) - exiting back to the menu without -skipIntro will load an intro. -
I'm getting a weird issue with the "Hit" eventhandler while running WarFX, the ammoType of vehicle weapons returned is coming back differently. It's breaking a couple of my missions and a handful of the BIS ones aswell. [b]Examples of arrays passed through "Hit":[/b] using M1A1 gunner seat machinegun Without WarFX: [21815a00# 438911: terc_postava.p3d,"",196.121,B 1-1-A:1,"B_762x51_Ball"] With WarFX: [2d19c300# 438911: terc_postava.p3d,"",196.141,B 1-1-A:1,"B_762x51_M240_Ball_Veh"]
-
Skip loading of background movies...
bhaz replied to megagoth1702's topic in ARMA 2 & OA - BETA PATCH TESTING
-skipIntro ? -
It's quite well done. Just don't pick a civilian as your vehicle for a mission, unless you're after a dead civilian of course.
-
That's really helpful, do hold / guard waypoints count toward this? If so, all my missions are already compatible anyway. :D
-
Mission Makers and Scripting Skype Channel
bhaz replied to loki's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
What about IRC, there anything along those lines? -
I agree. As cool as some of these newer features are, we're slowly losing compatibility with our missions. On the other hand, it's their mod, and they develop it using their own time and effort - we can't really complain. The best we can do is revert to an older version.
-
Squint - the sqf editor and error-checker
bhaz replied to sbsmac's topic in ARMA 2 & OA : Community Made Utilities
I think Igneous01 was referring to: _herp = player distance _marker; _derp = player distance (getMarkerPos _marker); The first line should throw an error, since it doesn't work. As great as Squint's features are, getting it to recognize which variables are defined as markers sounds kinda crazy. -
Dedicated server won't allow anyone to take slot 1.
bhaz replied to DOA's topic in ARMA 2 & OA - Servers & Administration
It's caused by playing a campaign / mission designed for listen-servers on a dedicated. The mission has a flag called forceInServer=1 on the first player slot, meaning this slot needs to be taken. The downside to this being the host can't swap this slot with anyone else. When the host is dedicated, __server__ takes the slot to fill the requirement. There is no remedy, it's just a mission design flaw. It's been around since release, is it possible you only just noticed? -
Using Dialogue System - Between Player and AI?
bhaz replied to HateDread's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
When I went through the BIS missions in the FSM editor, it looked as though all the .fsm files regarding speech were automatically generated. They're hiding something from us. :( -
This addon is legendary.
-
How can i check if i player has one of an array of weapons?
bhaz replied to SgtBatten's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
Commands are basically the same, just the way it's written is different. It's also a lot more efficient in terms of performance. More info here, here and here. -
Are you talking about Caprica? Cause that's already been and gone, pulled off after half a season. Or is there another I don't know about?
-
Setting Vehicles Side
bhaz replied to ker8er0s's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
I always thought this was a feature, the AI see a friendly-looking vehicle, so they assume neutral or friendly until they discover otherwise. But if it works fine in the editor, maybe it's actually a bug?? I remember back in the day starting out in ArmA as a domination pub-nub, the good old red tag when friendlies stole enemy vehicles, caused plenty of friendly fire incidents. -
How can i check if i player has one of an array of weapons?
bhaz replied to SgtBatten's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
Does waitUntil even work in SQS? I'm not sure, haven't touched that stuff since OFP. :( I think it was the @ symbol back then. Either way, the waitUntil condition needs to be surrounded by code brackets: waitUntil {{player hasweapon _x} count weaponsarray > 0}; -
Creating a waypoint and vehicle during the mission and using "GETOUT" problem
bhaz replied to GDICommand's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
The unassignVehicle command should be enough to order them out of the vehicle, once it stops moving. Then you could wait until they're all out, and create the AAV's final waypoint afterwards. {unassignVehicle _x} forEach units reinforcementSquad1; waitUntil {{_x in aav1} count units reinforcementSquad1 == 0}; // then create the rest of the AAV waypoints afterwards Plus, the unassignVehicle command relies on the fact that you've assigned them in the first place, before moving them in. (assignAsCargo) -
2nd player can't see tasks in COOP?
bhaz replied to Thats_Life 2.0's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
There's a few options: 1. Most just create a script with the tasks, then run it on all clients. ie, what you and shk said. Just create the task for both players. This one's the simplest. :) 2. Use a script package released by someone else that does it for you. (There's a few around). 3. The BIS way - functions module and RE. More explanation on that here. Example of use from one of my missions: note: this way takes quite a bit of effort unless you're starting from scratch. [objNull, leader GRP_INF, "per", rCREATETASKSET, "objDestination", ["Escort the resistance convoy to the southern border of Zargabad. Use your radio to signal the resistance to move up.", "Escort convoy", ""]] call RE; //objNull means run on all machines. //leader GRP_INF applies the objective to that group //"per" means this command is run on JIP //rCREATETASKSET is the function //"objDestination" is the name of the objective //Then finally, "description", "map name", "3d marker text" -
Script error, but what do I need to do?
bhaz replied to Thats_Life 2.0's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
You've inherited MissionDefault on one of your missions (for example MyMission : MissionDefault), and the mission is missing its template = MissionName.Island entry. -
Most Effective Way of Handling Proximity Task in MP?
bhaz replied to HateDread's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
player distance (getMarkerPos "MulladostMarker") -
View Bohemia Interactive missions in editor?
bhaz replied to nianni150's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
missions_e.pbo for the OA missions, don't have BAF but they'd be in the BAF folder under a similar name. Posting them here is probably against the rules. -
Support waypoint question
bhaz replied to victim913's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
The support waypoint will most likely attach to the group leader, so if the leader is a medic with engineers in his squad, they'll probably only respond to a medic call.