OFPEC Forum

Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: laggy on 02 Mar 2009, 20:55:49

Title: Do you know the config name for this fence?
Post by: laggy on 02 Mar 2009, 20:55:49
I searched the COMREF, but found zero.

Does anyone know what the name of this fence is, so that I can check for it with nearestObject command? See attached JPEG.

Or is it a WRP object that can't be accessed?
I want a script to recognize when the player is close to this type of object/fence.

Thanks,

Laggy
Title: Re: Do you know the model name for this fence?
Post by: hoz on 02 Mar 2009, 21:12:55
I think you can find it here (http://www.ofpec.com/COMREF/index.php?action=read&id=73).
Title: Re: Do you know the model name for this fence?
Post by: laggy on 02 Mar 2009, 21:16:30
Ich don't think so,

I checked the complete list 3 times, so unless I missed this one three times in a row, it's not there.
Title: Re: Do you know the model name for this fence?
Post by: Worldeater on 02 Mar 2009, 21:32:01
If nobody knows you could try this approach:

1. Find out the czech word for "fence" (it's "plot").
2. Download BIS' "Environment Sample Models".
3. Open all P3D files that have "plot" in their names in O2 (there are only 57)

... :D
Title: Re: Do you know the model name for this fence?
Post by: DeanosBeano on 02 Mar 2009, 21:33:47
 i think its pletivo_wired or army .

 put this in your init and place yourelf next to one or use radio trigger

 
Code: [Select]
x = nearestobjects [player,[],10] ;  hint format ["%1",x]
 your looking for Pletivo followed by another piece of the name there quite a few.

 
Title: Re: Do you know the model name for this fence?
Post by: laggy on 02 Mar 2009, 21:45:44
Hmmm,

"pletivo_wired.p3d" is in my surrounding according to your format check, but:

Tried gameLogics with init:

fence = "pletivo_wired" createVehicle getpos this... No object created.
fence = "pletivo_wired.p3d" createVehicle getpos this... No object created.

 :weeping:

EDIT:

I know for a fact that these fences don't react to type "static" or type "All".
Starting to suspect they are WRP objects or whatever it's called.
Title: Re: Do you know the model name for this fence?
Post by: DeanosBeano on 02 Mar 2009, 21:50:48

that is just the model name you will require the config name , i dont think it is in the editor under empty>objects though so you will need editor update1.02 or similar.
Title: Re: Do you know the model name for this fence?
Post by: Planck on 02 Mar 2009, 22:00:07
You need a classname to createVehicle this fence, unfortunately this model does not have a config entry.

In other word you are correct, it is a .wrp placed object only.


Planck
Title: Re: Do you know the model name for this fence?
Post by: laggy on 02 Mar 2009, 22:05:14
 :o So does that mean I can't check for it with nearestObject or similar either?

In Editor Update the vehicle is called "AAHO272" according to text in mission.sqm.

GameLogic init:
fence = "AAHO272" createVehicle getpos this... Works when Editor Update is loaded.

Does NOT work in Vanilla ArmA   :weeping: :weeping: :weeping:

EDIT:

This was for a mission, Ah well... guess I have to solve it with triggers instead  :cool2:
At least the "jebut" thing enables me to do what I want   :whistle:
Title: Re: Do you know the config name for this fence?
Post by: Planck on 03 Mar 2009, 16:04:56
You can check for a particular piece of fence using the Visitor ID number and nearestObject.

Get the ID number of the object you wish to test for then:

the_obj = position player nearestObject 7652 ...... or whatever number.

But, thats about it.


Planck
Title: Re: Do you know the config name for this fence?
Post by: Worldeater on 03 Mar 2009, 18:41:48
You can find WRP placed objects. Here is (http://www.ofpec.com/forum/index.php?topic=29713#msg227794) how it is done.

Of course you have to modify the function: replace all the road object names in the first line with the names of the objects you're looking for (uppercase!). Then you should rename some of the variables and remove/change the misleading comments (optional but recommended). Remove the two lines containing "fn_nearRoads". Save it as "nearFences.sqf" and call it with:

  fenceList = [getPos player, 50] execVM "nearFences.sqf";

The 50 is the radius in meters. You will get an error is this value is higher than 100.


I think these are the objects your looking for (not sure if all of them are used on Sarahni):

pletivo_wired.p3d
pletivo_wired_army.p3d
pletivo_wired_branaL.p3d
pletivo_wired_branaL_civil.p3d
pletivo_wired_branaP.p3d
pletivo_wired_hole.p3d
pletivo_wired_slope.p3d
Title: Re: Do you know the config name for this fence?
Post by: laggy on 03 Mar 2009, 21:05:51
Thanks all for your solid answers.

Will try it out for my mission, but might just end up solving it with triggers instead.

Love you anyhow, you awesome OFPEC gurus :-*