Jonescrusher
Member-
Content Count
34 -
Joined
-
Last visited
-
Medals
-
removing map from all players
Jonescrusher replied to Lightninguk's topic in ARMA 3 - MISSION EDITING & SCRIPTING
I just ran this code and it worked for me. this unassignItem "itemMap"; -
Need help with math formula
Jonescrusher replied to panther42's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
This should help you. the two variables that will concern you is the radius and the number of points. _center_position = getPos center_position; ///I used a logic placed in the editor named center_position, _number_of_points = 50; _interval = 360/_number_of_points; _radius = 1000; _angle = 0; for [{_index = 0},{_index < _number_of_points},{_index =_index + 1}] do{ _position = [(_center_position select 0)+sin(_angle)*_radius,(_center_position select 1)+cos(_angle)*_radius]; _angle = _angle + _interval; _marker = format ['point_marker_%1',_index]; createMarker[_marker, _position]; _marker setMarkerType 'dot'; _marker setMarkerSize[0.5, 0.5]; _marker setMarkerDir 1; _marker setMarkerColor 'Colorred'; _marker setMarkerText ''; }; You could put all the positions in an array and then randomly select one from the array later -
Deleting a vehicles variable name
Jonescrusher replied to iceman77's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
I just ran the code and it works as intended. I destroyed the car that was created at marker Z1_V2 and it respawned at marker Z1_V1. The only thing I can think of is that you do not have a marker named Z1_V1 and that the marker's name in the while loop was a typo where you meant Z1_V2 instead of Z1_V1. Describe what you are trying to do with the script and I can probably give you better help. -
How to make scripts called by actions serverside?
Jonescrusher replied to alleycat's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
Post the code and we will be able to help you better. -
Incorporate while loop how to
Jonescrusher replied to RonnieJ's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
I don't think the AI like the laserdesignator. i tried a few things to force them to use it and they always resorted back drawing their rifle. Even when i removed all other weapons the AI spazzed tryign to get a weapon that wasn't there. An issue you will run in to with that script is if you get it to work what the Ai will do is switch through all the targets he knwos about as fast as the script cycles. So say he knowsabout s1,s2, and s3, he will aim at one then the other and then the other each time the loop cycles. Are you trying to get the Ai to do a coordinated airstrike or something? Might have to use a workaround, like just create the lasertarget on the unit and have it track the units movement. -
Trigger to detect units name?
Jonescrusher replied to Concept's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
try just getting the group leader nul = [leader (thislist select 0), "mark_waypoint1"] execVM "islandPatrol.sqf"; If you name the SL bob and any of bob's boys enter the trigger it will fire off the script and pass bob's name to the script. -
Incorporate while loop how to
Jonescrusher replied to RonnieJ's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
It would be easier to help you if you posted all the code you are using. -
Un-pbo'd files show up as read only files in editor
Jonescrusher replied to Rex Ursus's topic in ARMA 2 & OA : BI TOOLS - TROUBLESHOOTING
I only have seen that when the mission.sqm file is missing. Make sure the mission.sqm is present in the root folder for the mission. If it is there and still causing that open the mission.sqm file and look in there for anything abnormal. -
Editor Environment - SQS SQF CPP CFG
Jonescrusher replied to [aps]gnat's topic in ARMA 2 & OA : ADDONS - Configs & Scripting
notepad++ would be your best bet if you want one app to use for multiple languages. It works fine for config files. I personally just use regular notepad to do everything, but that is because I am a masochist. Notepad++ covers just about every major programming language. And I believe there are some plugins for it to cover sqf syntax and what not. -
Real Mortars by Jones
Jonescrusher replied to Jonescrusher's topic in ARMA 2 & OA - ADDONS & MODS: COMPLETE
I really want to be nice to people........ Would you please elaborate more on a 4 month old post that lacked any kind of constructive critism to begin with. I am all for constructive critism and advice. A one line comment that has no substance doesn't qualify as constructive. Imagine what I think about a one line comment that is attempting to support a 4 month old one line comment........ You wasted a minute of your time, and I actually was dumb enough to waste a minute of mine responding to it. But I really do want to be nice to people. -
CreateDialog without losing control
Jonescrusher replied to DancZer's topic in ARMA 2 & OA : ADDONS - Configs & Scripting
The answer to the question is no. If you use cutRsc you will not have the cursor to click the button, so it is kind of pointless. But if you use something other than a button to make selections or what not you can have the GUI element present and still move the character if you use cutRsc. I am sure if you are more specific with what you are attemtping to achieve that there are plenty of people that have came up with a work around. -
Real Mortars by Jones
Jonescrusher replied to Jonescrusher's topic in ARMA 2 & OA - ADDONS & MODS: COMPLETE
Good thing I didn't attempt to import that model then, I would have been a bit upset at that. Well seeing the game was just patched it will probably remain broken for a while. Hadn't has time to play with the toys for a while and when I do they don't work, damn Murphy and his stupid law. Gives me a good reason to work on soemthign else or start a new project. -
Real Mortars by Jones
Jonescrusher replied to Jonescrusher's topic in ARMA 2 & OA - ADDONS & MODS: COMPLETE
Not big deal I can use place holders to test, which I can manage to wiggle in to the d30so everything will be in place but no point in releasing the mod until BIS fixes the issue. Besides I have a dozen other projects going on right now. -
Real Mortars by Jones
Jonescrusher replied to Jonescrusher's topic in ARMA 2 & OA - ADDONS & MODS: COMPLETE
I went through the change log and noticed that. I hadn't messed with the sataic weapons through most of 1.04. Not sure what was wrong with them to begin with, but the surely need fixing now. -
Real Mortars by Jones
Jonescrusher replied to Jonescrusher's topic in ARMA 2 & OA - ADDONS & MODS: COMPLETE
I configed everything and what not but there is this problem I am having. i am unable to enter the M119. And the D30 enter actions only pop up if I wiggle around in front of the gun. This isn't mod related it happens with no mods and 3 seperate computers. Does anyone else have this issue? Until this is resolved I can't test it, kind of bummer.