Home   Help Search Login Register  

Author Topic: Indestructible objects  (Read 1417 times)

0 Members and 1 Guest are viewing this topic.

Silencer

  • Guest
Indestructible objects
« on: 03 Apr 2005, 01:11:14 »
Hey all,

Is it possible to make objects indestructible?
(It is for a MP map)

Offline General Barron

  • Former Staff
  • ****
  • Semper Fi!
Re:Indestructible objects
« Reply #1 on: 03 Apr 2005, 04:35:26 »
Try adding this to their init line (or replace 'this' with 'object xxx' for map objects):

this addeventhandler ["hit", {(_this select 0) setdammage 0}]

HANDSIGNALS COMMAND SYSTEM-- A realistic squad-control modification for OFP
kexp.org-- The best radio station in the world, right here at home! Listen to John Richards!

Silencer

  • Guest
Re:Indestructible objects
« Reply #2 on: 03 Apr 2005, 11:52:39 »
I want a fence to be indestructible, so if a car drives against it, the fence will still stand.

this addeventhandler ["hit", {(_this select 0) setdammage 0}]

does work a little, but the fence will still be down if you drive fast enough
 :-[

Offline Blanco

  • Former Staff
  • ****
Re:Indestructible objects
« Reply #3 on: 03 Apr 2005, 14:09:13 »
Those fences have very low armour, so the slightest contact will destroy it and the EH will react to late.
Try to use a brick wall (maybe a low one) if it fits in your mission.
Search or search or search before you ask.

DBR_ONIX

  • Guest
Re:Indestructible objects
« Reply #4 on: 05 Apr 2005, 19:22:47 »
If possible, make a simple addon that has a think geolod, that's it. Put it over the fence.. you'll smack into geolod, not the fence
If that's not possible, hmm.. a trigger over the fence, and aboiut a meter either way, grouped to the cars, if any of htem get within that trigger, it gets setvelcity [0,0,0], so it'll stop isntaltly

- Ben

Silencer

  • Guest
Re:Indestructible objects
« Reply #5 on: 05 Apr 2005, 19:50:17 »
Good idea, I will try the SetVelocity thing :)
Thanks!

Silencer

  • Guest
Re:Indestructible objects
« Reply #6 on: 09 Apr 2005, 17:26:02 »
The car allready hit the fence before it stops :(
So the SetVelocity command is too slow :-\

Any other ideas?

Offline Platoon Patton

  • Members
  • *
  • "Barbecue" CreateVehicle getpos LLama
Re:Indestructible objects
« Reply #7 on: 09 Apr 2005, 17:32:56 »
Put some other objects in front of your fence,so the car hits that instead of the fence.

Try tree stump,concrete block,....
http://www.platoon-clan.com/ We always wellcome dedicated OFP players :)

http://www.european-combat-league.com/index.php To play with us in the best OFP league ;)

Offline Terox

  • Former Staff
  • ****
  • Follow the Sappers!
    • zeus-community.net
Re:Indestructible objects
« Reply #8 on: 09 Apr 2005, 19:00:46 »
put a tank trap infront of it, nothing bends those things
Zeus ARMA2 server IP = 77.74.193.124 :2302
Teamspeak IP = 77.74.193.123

Silencer

  • Guest
Re:Indestructible objects
« Reply #9 on: 09 Apr 2005, 19:08:18 »
Are there invisible walls?
Then it would look normal, but you can't drive over the fences!

Offline Blanco

  • Former Staff
  • ****
Re:Indestructible objects
« Reply #10 on: 09 Apr 2005, 19:25:55 »
Not that I know about, Silencer

Search or search or search before you ask.

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:Indestructible objects
« Reply #11 on: 09 Apr 2005, 19:31:09 »
There is an invisible fence in O.pbo, but there is no config entry anywhere for it.
That and an invisible house.    ;D


Planck
I know a little about a lot, and a lot about a little.