OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Silencer on 03 Apr 2005, 01:11:14
-
Hey all,
Is it possible to make objects indestructible?
(It is for a MP map)
-
Try adding this to their init line (or replace 'this' with 'object xxx' for map objects):
this addeventhandler ["hit", {(_this select 0) setdammage 0}]
-
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
:-[
-
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.
-
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
-
Good idea, I will try the SetVelocity thing :)
Thanks!
-
The car allready hit the fence before it stops :(
So the SetVelocity command is too slow :-\
Any other ideas?
-
Put some other objects in front of your fence,so the car hits that instead of the fence.
Try tree stump,concrete block,....
-
put a tank trap infront of it, nothing bends those things
-
Are there invisible walls?
Then it would look normal, but you can't drive over the fences!
-
Not that I know about, Silencer
-
There is an invisible fence in O.pbo, but there is no config entry anywhere for it.
That and an invisible house. ;D
Planck