dimdic
Member-
Content Count
60 -
Joined
-
Last visited
-
Medals
Everything posted by dimdic
-
Is it possible to change font in briefing ??
dimdic replied to dimdic's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
But how can i select for example "EtelkaNarrowMediumPro" font to show in my hints ?? -
Is it possible to change font in briefing ??
dimdic posted a topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
Is it possible to change font in briefing ?? Is it also possible to change font to the hints during the game ?? I want for example to use the font "Webdings" which has some symbols, or use a spanish font which has special letters (for example ñ ) . Thank you. -
How to check if an array is empty ??
dimdic posted a topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
Hi there !! The command assignedVehicleRole may return: [] - Not assigned to any vehicle ["Driver"] - Assigned as driver ["Cargo"] - Assigned as cargo ["Turret", [turret path]] - Assigned to a turret (http://community.bistudio.com/wiki/assignedVehicleRole) E.g. _RoleArray=assignedVehicleRole player With which code can i check if the returned array is empty??? Is there any way to check this, except from using the command count ? E.g. _RoleArray=assignedVehicleRole player; if (isNull _RoleArray) then { hint 'empty'}; //isNull _RoleArray doesn't work !! -
delete all objects & units inside a spefic area
dimdic posted a topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
Hi! Is there any way to delete all objects & units inside a specific area of my map ? Thank you. -
delete all objects & units inside a spefic area
dimdic replied to dimdic's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
Yes Horner !! That's true! I wanted to delete them! The important thing was the idea of using the command "nearestObjects" !! Thank you a lot! -
Way to adjust the rotation speed of aiming when i am gunner of a vehicle!
dimdic replied to dimdic's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
Thank you for replying twirly ! -
Hi there! How can i check if the network during a multiplayer mission is overloaded ? Thank you.
-
How can i check if network is overloaded ?
dimdic replied to dimdic's topic in ARMA 2 & OA - MULTIPLAYER
I am running windows 7 ! It's a local network connection (using a switch)! No it's not a dedicated server! -
Opfor units don't fire (strange AI behaviour) !!
dimdic posted a topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
I have created a mission where a M113 vehicle is driven by the player. At a moment a trigger activates an ied 10 meters in front of the m113 and a script file is executed ! I have positioned opfor units behind some rocks near the ied. Their preferences are : CombatMode never fire, behaviour: safe, stance: prone, and initialization statements: disableAI "MOVE". The script of the code is this : { if ( (side _x==east) ) then { _x enableAI "MOVE"; _x setUnitPos "AUTO"; _x setSkill 1; _x setSkill ["SpotDistance",1]; _x setSkill ["AimingAccuracy",1]; _x allowFleeing 0; _x setBehaviour "AWARE"; _x setCombatMode "RED"; _x reveal player; _x reveal (vehicle player); _x doFire (vehicle player); forceRefreshTargets (group _x); }; }forEach allUnits; The problem is that opfor units DON'T fire their weapon (they do nothing) which is very strange. I want them to fire against M113. Opfor units are not in a group. What shall i do to work properly ?? Thank you. -
Opfor units don't fire (strange AI behaviour) !!
dimdic replied to dimdic's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
Only one of them has rpg. The others have rifle !!! Is that the problem ?? -
A piece of code that doesn't work!
dimdic replied to dimdic's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
You are right my friend, but it works fine AS IT IS :) !!!! That's why i didn't add any solution!! In my original code i had the fourth line ( fourth line: _cond=_this select 0; ) with comments. I was sooo dizzy that i could't see that i have comments in this line :/ !! It was stupid post! -
A piece of code that doesn't work!
dimdic posted a topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
I have written a piece of code, but it doesn't work. Here i am explaining what i want it to do: The player has 5 subordinate units. I want a hint to appear when the player selects a specific subordinate unit (soldier 3 with name "name_of_soldier3"). What's wrong with it ?? _myfun= { private ["_cond"]; _cond=_this select 0; waitUntil { hint "Waiting to select soldier 3 (press button F3)"; call _cond }; sleep 2; hint "You have selected soldier 3"; }; _cond= { (((groupSelectedUnits player) select 0)==name_of_soldier3) }; _z=[_cond] spawn _myfun; Unfortunately, when i am the player and select soldiers 3 nothing happens :d: Any ideas?? Thank you. ---------- Post added at 11:27 AM ---------- Previous post was at 10:44 AM ---------- FINALLY IT WORKS FINE !!!!! sorry about this post, erase it please !! :/ -
A want a trigger to be activated with a specific condition.
dimdic posted a topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
I have a trigger with Activation "BLUFOR" and activation type "PRESENT" . I want a specific Blufor Unit that passes through the trigger area without activating the trigger ! Is this possible ? Thank you. I also have a trigger with Activation "OPFOR" and activation type "Detected by Blufor". I want a specific Opfor Unit that is seen by Blufors without activating the trigger. -
A want a trigger to be activated with a specific condition.
dimdic replied to dimdic's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
Thank you Igneous01!! 1. Works fine ! I think (this && !(unitname in thisList)) works also fine. 2. I made a mistake in my second question. Here is the right one : I have a trigger with Activation "OPFOR" and activation type "Detected by Blufor". I want a specific Blufor that sees an Opfor without activating the trigger. -
Hi there. I have the following problem: During my mission I am creating a unit (airplane) using the createVehicle command (_myair="airplane" createVehicle (getPos soldier) ). Later on i want to delete the airplane that i created. BUT the command "deleteVehicle object _myair) ; " doesn't work. As i can see, "_myair" is not the name of the airplane that i created. How can i set a name to the airplane so that i can refer to it later on ? Or is there any other solution to my problem ? Thank you.
-
How can i refer to a unit that i have created through "createVehicle" command ?
dimdic replied to dimdic's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
Oh, i am sorry! It was a misprint.. i use the command "deleteVehicle _myair" and not "deleteVehicle object _myair) " , and the command doesn't work ! Is my problem related to the fact that i use a local variable "_myair" and not a global "myair" ?? -
questions concerning a multiplayer senario !!
dimdic posted a topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
To be more accurate.. i created a multiplayer senario and when i tested with my friends i found out several problems. So i need your help concerning the following: 1)Commands that are executed in a trigger "On Activation" field, are executed on all machines !! I DON'T WANT THIS TO HAPPEN !!! I want them to be executed only once!! 2)I have created an introduction with a moving camera in the beginning of the senario and only the one who is the server can see that. Does anybody know how to solve these problems ??? Are there any other basic things that i should know before or after creating a multiplayer senario ? Or any problems that i am going to face and i haven't spotted them yet?? Thank you. -
Hi there! I have put my subordinate units in the map in a column, having a direction of 270 degrees (degrees are measured clockwise from north). I put the commandStop (i tried also doStop) in the init for all my subordinate units because i want my units to be stationary at beginning of the mission even if i move around them (i am their leader). BUT when the missions starts and command "commandStop" runs, my units change direction automatically and look at north (0 degrees). Do anyone know what's going wrong, and how can i solve this problem ?? Thank you a lot.
-
Units change direction when i use commandStop command :S !! help..
dimdic replied to dimdic's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
WORKS GREAT MY FRIEND !!! Thank you a lot :) !!! -
Units change direction when i use commandStop command :S !! help..
dimdic replied to dimdic's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
My problem is that if i use the commands "unitname stop true;" "unitname disableAI" then i need to run a script with the commands "unitname stop false" or "unitname enableAI "MOVE";" "unitname enableAI "ANIM";" and i don't know the condition (and how) i should run this script! And this because I want my units to be stanionary, and then (WHENEVER i want) select them and order them to get in a vehicle !!