Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - gregorio85

Pages: [1] 2
1
Armed Assault 2 / Re: DayZ code snippets.
« on: June 05, 2012, 08:53:49 pm »
you dont need any of the class names

just do a foreach allunits.

and remember to remove the markers before you add new ones or youl end up with 50 billion overlapping on each other and remember to check getdammage.

gave you enough to get you started go get busy.

Done it but i get marked only the infantry, the empty vehicles are unmarked.

2
Armed Assault 2 / Re: DayZ code snippets.
« on: June 05, 2012, 03:06:44 pm »
Code: [Select]
_obj="UH1H_DZ"; // this object that we want to mark on the map
_objects = allMissionObjects _obj;
_lbl = "";
_count = 1;
{
_marker = Format["%1Markers%2",_count,_obj];
createMarkerLocal [_marker,position _x];
_marker setMarkerTypeLocal "dot";
_marker setMarkerColorLocal "ColorRed";
_marker setMarkerSizeLocal [1,1];
_lbl = Format["%1 [%2]",_obj,_count];
_marker setMarkerTextLocal _lbl;
_count = _count + 1;
} forEach _objects;

_obj="ATV_US_EP1"; // this object that we want to mark on the map
_objects = allMissionObjects _obj;
_lbl = "";
_count = 1;
{
_marker = Format["%1Markers%2",_count,_obj];
createMarkerLocal [_marker,position _x];
_marker setMarkerTypeLocal "dot";
_marker setMarkerColorLocal "ColorRed";
_marker setMarkerSizeLocal [1,1];
_lbl = Format["%1 [%2]",_obj,_count];
_marker setMarkerTextLocal _lbl;
_count = _count + 1;
} forEach _objects;

obj="LandRover_CZ_EP1"; // this object that we want to mark on the map
_objects = allMissionObjects _obj;
_lbl = "";
_count = 1;
{
_marker = Format["%1Markers%2",_count,_obj];
createMarkerLocal [_marker,position _x];
_marker setMarkerTypeLocal "dot";
_marker setMarkerColorLocal "ColorRed";
_marker setMarkerSizeLocal [1,1];
_lbl = Format["%1 [%2]",_obj,_count];
_marker setMarkerTextLocal _lbl;
_count = _count + 1;
} forEach _objects;

obj="ATV_CZ_EP1"; // this object that we want to mark on the map
_objects = allMissionObjects _obj;
_lbl = "";
_count = 1;
{
_marker = Format["%1Markers%2",_count,_obj];
createMarkerLocal [_marker,position _x];
_marker setMarkerTypeLocal "dot";
_marker setMarkerColorLocal "ColorRed";
_marker setMarkerSizeLocal [1,1];
_lbl = Format["%1 [%2]",_obj,_count];
_marker setMarkerTextLocal _lbl;
_count = _count + 1;
} forEach _objects;

obj="Survivor2_DZ"; // this object that we want to mark on the map
_objects = allMissionObjects _obj;
_lbl = "";
_count = 1;
{
_marker = Format["%1Markers%2",_count,_obj];
createMarkerLocal [_marker,position _x];
_marker setMarkerTypeLocal "dot";
_marker setMarkerColorLocal "ColorRed";
_marker setMarkerSizeLocal [1,1];
_lbl = Format["%1 [%2]",_obj,_count];
_marker setMarkerTextLocal _lbl;
_count = _count + 1;
} forEach _objects;

obj="SurvivorW2_DZ"; // this object that we want to mark on the map
_objects = allMissionObjects _obj;
_lbl = "";
_count = 1;
{
_marker = Format["%1Markers%2",_count,_obj];
createMarkerLocal [_marker,position _x];
_marker setMarkerTypeLocal "dot";
_marker setMarkerColorLocal "ColorRed";
_marker setMarkerSizeLocal [1,1];
_lbl = Format["%1 [%2]",_obj,_count];
_marker setMarkerTextLocal _lbl;
_count = _count + 1;
} forEach _objects;



bj="BAF_Soldier_L_W"; // this object that we want to mark on the map
_objects = allMissionObjects _obj;
_lbl = "";
_count = 1;
{
_marker = Format["%1Markers%2",_count,_obj];
createMarkerLocal [_marker,position _x];
_marker setMarkerTypeLocal "dot";
_marker setMarkerColorLocal "ColorRed";
_marker setMarkerSizeLocal [1,1];
_lbl = Format["%1 [%2]",_obj,_count];
_marker setMarkerTextLocal _lbl;
_count = _count + 1;
} forEach _objects;

bj="BAF_Soldier_SniperH_W"; // this object that we want to mark on the map
_objects = allMissionObjects _obj;
_lbl = "";
_count = 1;
{
_marker = Format["%1Markers%2",_count,_obj];
createMarkerLocal [_marker,position _x];
_marker setMarkerTypeLocal "dot";
_marker setMarkerColorLocal "ColorRed";
_marker setMarkerSizeLocal [1,1];
_lbl = Format["%1 [%2]",_obj,_count];
_marker setMarkerTextLocal _lbl;
_count = _count + 1;
} forEach _objects;

bj="BAF_Soldier_L_W"; // this object that we want to mark on the map
_objects = allMissionObjects _obj;
_lbl = "";
_count = 1;
{
_marker = Format["%1Markers%2",_count,_obj];
createMarkerLocal [_marker,position _x];
_marker setMarkerTypeLocal "dot";
_marker setMarkerColorLocal "ColorRed";
_marker setMarkerSizeLocal [1,1];
_lbl = Format["%1 [%2]",_obj,_count];
_marker setMarkerTextLocal _lbl;
_count = _count + 1;
} forEach _objects;

bj="Ikarus"; // this object that we want to mark on the map
_objects = allMissionObjects _obj;
_lbl = "";
_count = 1;
{
_marker = Format["%1Markers%2",_count,_obj];
createMarkerLocal [_marker,position _x];
_marker setMarkerTypeLocal "dot";
_marker setMarkerColorLocal "ColorRed";
_marker setMarkerSizeLocal [1,1];
_lbl = Format["%1 [%2]",_obj,_count];
_marker setMarkerTextLocal _lbl;
_count = _count + 1;
} forEach _objects;

bj="UAZ_CDF"; // this object that we want to mark on the map
_objects = allMissionObjects _obj;
_lbl = "";
_count = 1;
{
_marker = Format["%1Markers%2",_count,_obj];
createMarkerLocal [_marker,position _x];
_marker setMarkerTypeLocal "dot";
_marker setMarkerColorLocal "ColorRed";
_marker setMarkerSizeLocal [1,1];
_lbl = Format["%1 [%2]",_obj,_count];
_marker setMarkerTextLocal _lbl;
_count = _count + 1;
} forEach _objects;



bj="UAZ_Unarmed_TK_CIV_EP1"; // this object that we want to mark on the map
_objects = allMissionObjects _obj;
_lbl = "";
_count = 1;
{
_marker = Format["%1Markers%2",_count,_obj];
createMarkerLocal [_marker,position _x];
_marker setMarkerTypeLocal "dot";
_marker setMarkerColorLocal "ColorRed";
_marker setMarkerSizeLocal [1,1];
_lbl = Format["%1 [%2]",_obj,_count];
_marker setMarkerTextLocal _lbl;
_count = _count + 1;
} forEach _objects;

bj="Volha_2_TK_CIV_EP1"; // this object that we want to mark on the map
_objects = allMissionObjects _obj;
_lbl = "";
_count = 1;
{
_marker = Format["%1Markers%2",_count,_obj];
createMarkerLocal [_marker,position _x];
_marker setMarkerTypeLocal "dot";
_marker setMarkerColorLocal "ColorRed";
_marker setMarkerSizeLocal [1,1];
_lbl = Format["%1 [%2]",_obj,_count];
_marker setMarkerTextLocal _lbl;
_count = _count + 1;
} forEach _objects;

bj="hilux1_civil_3_open_EP1"; // this object that we want to mark on the map
_objects = allMissionObjects _obj;
_lbl = "";
_count = 1;
{
_marker = Format["%1Markers%2",_count,_obj];
createMarkerLocal [_marker,position _x];
_marker setMarkerTypeLocal "dot";
_marker setMarkerColorLocal "ColorRed";
_marker setMarkerSizeLocal [1,1];
_lbl = Format["%1 [%2]",_obj,_count];
_marker setMarkerTextLocal _lbl;
_count = _count + 1;
} forEach _objects;

bj="Lada1_TK_CIV_EP1"; // this object that we want to mark on the map
_objects = allMissionObjects _obj;
_lbl = "";
_count = 1;
{
_marker = Format["%1Markers%2",_count,_obj];
createMarkerLocal [_marker,position _x];
_marker setMarkerTypeLocal "dot";
_marker setMarkerColorLocal "ColorRed";
_marker setMarkerSizeLocal [1,1];
_lbl = Format["%1 [%2]",_obj,_count];
_marker setMarkerTextLocal _lbl;
_count = _count + 1;
} forEach _objects;

bj="Lada1"; // this object that we want to mark on the map
_objects = allMissionObjects _obj;
_lbl = "";
_count = 1;
{
_marker = Format["%1Markers%2",_count,_obj];
createMarkerLocal [_marker,position _x];
_marker setMarkerTypeLocal "dot";
_marker setMarkerColorLocal "ColorRed";
_marker setMarkerSizeLocal [1,1];
_lbl = Format["%1 [%2]",_obj,_count];
_marker setMarkerTextLocal _lbl;
_count = _count + 1;
} forEach _objects;

bj="BAF_Offroad_W"; // this object that we want to mark on the map
_objects = allMissionObjects _obj;
_lbl = "";
_count = 1;
{
_marker = Format["%1Markers%2",_count,_obj];
createMarkerLocal [_marker,position _x];
_marker setMarkerTypeLocal "dot";
_marker setMarkerColorLocal "ColorRed";
_marker setMarkerSizeLocal [1,1];
_lbl = Format["%1 [%2]",_obj,_count];
_marker setMarkerTextLocal _lbl;
_count = _count + 1;
} forEach _objects;

bj="Old_moto_TK_Civ_EP1"; // this object that we want to mark on the map
_objects = allMissionObjects _obj;
_lbl = "";
_count = 1;
{
_marker = Format["%1Markers%2",_count,_obj];
createMarkerLocal [_marker,position _x];
_marker setMarkerTypeLocal "dot";
_marker setMarkerColorLocal "ColorRed";
_marker setMarkerSizeLocal [1,1];
_lbl = Format["%1 [%2]",_obj,_count];
_marker setMarkerTextLocal _lbl;
_count = _count + 1;
} forEach _objects;


bj="SkodaRed"; // this object that we want to mark on the map
_objects = allMissionObjects _obj;
_lbl = "";
_count = 1;
{
_marker = Format["%1Markers%2",_count,_obj];
createMarkerLocal [_marker,position _x];
_marker setMarkerTypeLocal "dot";
_marker setMarkerColorLocal "ColorRed";
_marker setMarkerSizeLocal [1,1];
_lbl = Format["%1 [%2]",_obj,_count];
_marker setMarkerTextLocal _lbl;
_count = _count + 1;
} forEach _objects;

bj="TT650_Civ"; // this object that we want to mark on the map
_objects = allMissionObjects _obj;
_lbl = "";
_count = 1;
{
_marker = Format["%1Markers%2",_count,_obj];
createMarkerLocal [_marker,position _x];
_marker setMarkerTypeLocal "dot";
_marker setMarkerColorLocal "ColorRed";
_marker setMarkerSizeLocal [1,1];
_lbl = Format["%1 [%2]",_obj,_count];
_marker setMarkerTextLocal _lbl;
_count = _count + 1;
} forEach _objects;

bj="Fishing_Boat"; // this object that we want to mark on the map
_objects = allMissionObjects _obj;
_lbl = "";
_count = 1;
{
_marker = Format["%1Markers%2",_count,_obj];
createMarkerLocal [_marker,position _x];
_marker setMarkerTypeLocal "dot";
_marker setMarkerColorLocal "ColorRed";
_marker setMarkerSizeLocal [1,1];
_lbl = Format["%1 [%2]",_obj,_count];
_marker setMarkerTextLocal _lbl;
_count = _count + 1;
} forEach _objects;

bj="Smallboat_1"; // this object that we want to mark on the map
_objects = allMissionObjects _obj;
_lbl = "";
_count = 1;
{
_marker = Format["%1Markers%2",_count,_obj];
createMarkerLocal [_marker,position _x];
_marker setMarkerTypeLocal "dot";
_marker setMarkerColorLocal "ColorRed";
_marker setMarkerSizeLocal [1,1];
_lbl = Format["%1 [%2]",_obj,_count];
_marker setMarkerTextLocal _lbl;
_count = _count + 1;
} forEach _objects;

bj="PBX"; // this object that we want to mark on the map
_objects = allMissionObjects _obj;
_lbl = "";
_count = 1;
{
_marker = Format["%1Markers%2",_count,_obj];
createMarkerLocal [_marker,position _x];
_marker setMarkerTypeLocal "dot";
_marker setMarkerColorLocal "ColorRed";
_marker setMarkerSizeLocal [1,1];
_lbl = Format["%1 [%2]",_obj,_count];
_marker setMarkerTextLocal _lbl;
_count = _count + 1;
} forEach _objects;

Tested on 1.6 (if there is something wrong please tell me)  :icon_laugh

3
Armed Assault 2 / Re: Debug Forest (DayZ)
« on: June 04, 2012, 02:19:14 pm »
it's near the western village on the coast, but if you spawn normally you cant see people in the debug forest cause they are invisible to you.

4
Armed Assault 2 / Re: How are you today Tonic?
« on: May 31, 2012, 03:23:43 am »
Good job :D

5
Armed Assault 2 / Re: DayZ weaponcrate in depth
« on: May 30, 2012, 10:13:24 pm »
Ok i finally spawned the box, but it last only a few secondos (like 2-3) any possibile solution?


check the new pbo's for something like an array with the name of the box in it , then check for deletevehicle with that array name in.

the rest is upto you. it should be very easy.



Thank you, I solved by spawning a vehicle with the only gear i needed

6
Armed Assault 2 / Re: DayZ weaponcrate in depth
« on: May 30, 2012, 09:53:26 pm »
Ok i finally spawned the box, but it last only a few secondos (like 2-3) any possibile solution?

7
Section of Science / Soft body physics for cars
« on: May 30, 2012, 04:44:52 pm »
Imagine this in arma3... wow

http://www.youtube.com/watch?v=KppTmsNFneg

8
Announcements / Re: Hello!
« on: May 30, 2012, 01:58:46 pm »
Hi!

9
Random Insanity Board / Re: Hmmmmmm.....
« on: May 30, 2012, 03:30:50 am »


Lol i love so much the red bull but no the sugar free one  :icon_laugh

11
Armed Assault 2 / Re: Arma 2 + OA Ultimate Bypass.
« on: May 30, 2012, 03:29:05 am »
Can I have the pass?
Please
Sure...when you follow the directions laid out in the thread.

Sorry my fault!

12
Armed Assault 2 / Re: DayZ weaponcrate in depth
« on: May 30, 2012, 03:23:59 am »
I'm trying but i keep failing, better try harder...

13
Section of Science / Re: Oxygen
« on: May 30, 2012, 03:12:21 am »
Nice, i will search some nice wallpaper of it!

14
Off Topic / Re: arma x give away
« on: May 30, 2012, 03:10:34 am »
I did not get anything :(

15
Off Topic / Re: [REQ] Counter Strike BO beta key
« on: May 30, 2012, 03:08:39 am »
I will just wait for it to be released...

Pages: [1] 2