Home   Help Search Login Register  

Author Topic: Do you know the config name for this fence?  (Read 1796 times)

0 Members and 1 Guest are viewing this topic.

Offline laggy

  • Members
  • *
  • "Behold a pale horse"
Do you know the config name for this fence?
« 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
« Last Edit: 02 Mar 2009, 22:24:35 by laggy »
And I looked and beheld a pale horse and his name that sat on him was Death and Hell followed with him.

Offline hoz

  • OFPEC Site
  • Administrator
  • *****
Re: Do you know the model name for this fence?
« Reply #1 on: 02 Mar 2009, 21:12:55 »
I think you can find it here.
Xbox Rocks

Offline laggy

  • Members
  • *
  • "Behold a pale horse"
Re: Do you know the model name for this fence?
« Reply #2 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.
And I looked and beheld a pale horse and his name that sat on him was Death and Hell followed with him.

Offline Worldeater

  • Former Staff
  • ****
  • Suum cuique
Re: Do you know the model name for this fence?
« Reply #3 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
try { return true; } finally { return false; }

Offline DeanosBeano

  • Addons Depot Staff
  • *****
  • SirDeanosbeano bstowed on me by sui ;)
    • Fraghaus
Re: Do you know the model name for this fence?
« Reply #4 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.

 
I love ofp

Offline laggy

  • Members
  • *
  • "Behold a pale horse"
Re: Do you know the model name for this fence?
« Reply #5 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.
« Last Edit: 02 Mar 2009, 21:50:37 by laggy »
And I looked and beheld a pale horse and his name that sat on him was Death and Hell followed with him.

Offline DeanosBeano

  • Addons Depot Staff
  • *****
  • SirDeanosbeano bstowed on me by sui ;)
    • Fraghaus
Re: Do you know the model name for this fence?
« Reply #6 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.
I love ofp

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re: Do you know the model name for this fence?
« Reply #7 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
I know a little about a lot, and a lot about a little.

Offline laggy

  • Members
  • *
  • "Behold a pale horse"
Re: Do you know the model name for this fence?
« Reply #8 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:
« Last Edit: 02 Mar 2009, 22:44:23 by laggy »
And I looked and beheld a pale horse and his name that sat on him was Death and Hell followed with him.

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re: Do you know the config name for this fence?
« Reply #9 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
I know a little about a lot, and a lot about a little.

Offline Worldeater

  • Former Staff
  • ****
  • Suum cuique
Re: Do you know the config name for this fence?
« Reply #10 on: 03 Mar 2009, 18:41:48 »
You can find WRP placed objects. Here is 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
try { return true; } finally { return false; }

Offline laggy

  • Members
  • *
  • "Behold a pale horse"
Re: Do you know the config name for this fence?
« Reply #11 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 :-*
« Last Edit: 03 Mar 2009, 21:33:58 by laggy »
And I looked and beheld a pale horse and his name that sat on him was Death and Hell followed with him.