Home   Help Search Login Register  

Author Topic: Repairing objects AND the appreance  (Read 779 times)

0 Members and 1 Guest are viewing this topic.

Stone

  • Guest
Repairing objects AND the appreance
« on: 29 Aug 2003, 10:42:45 »
Basics: I tried to search the boards for help!  8)

Situation: I destroy object with setdammage 1, then I want to repair it with setdammage 0 - works fine BUT the appreance of the object is crappy - so the vechile works but it looks like destroyed.

Goal: To get after setdammage 1 fully functional object which looks like new.

Additional info: I have a need to keep the name of this object - so I don't want to delete it and create new with createvechile unless You can tell me how to name that new object the same as the one I deleted.

ThanX for any hints people !



deaddog

  • Guest
Re:Repairing objects AND the appreance
« Reply #1 on: 29 Aug 2003, 14:48:19 »
Use createvehicle to create the first one, too:

_veh="jeep" createvehicle [position]

then later,

deletevehicle _veh

_veh="jeep" createvehicle [position]


You can repeat this as many times as you want.  :)

Stone

  • Guest
Re:Repairing objects AND the appreance
« Reply #2 on: 29 Aug 2003, 15:02:23 »
Hi, and thanks for input !   :)

 I'll try that out, but how could I give a name to that created jeep - let's say I need that Created JEEP to be named V_JEEP1 - 'cause I have scripts what track this vechile called V_JEEP1 in the init.sqm

 ???


Stone

  • Guest
Re:Repairing objects AND the appreance
« Reply #3 on: 29 Aug 2003, 20:26:41 »
Hi, seems I got it working using the setdammage also; this thing appeared only when I had only respawn_west marker, when I added respawn_east I had this problem no more... so, it seems to be a bug in OFP 1.92BETA. If I find out something else about this I'll post it.


Offline Doolittle

  • Contributing Member
  • **
  • _this select 0
Re:Repairing objects AND the appreance
« Reply #4 on: 29 Aug 2003, 23:12:19 »
If you setDamage something to 0 too fast then it stays crushed.  If you do something like:
_v setDamage 0.5
~0.1
_v setDamage 0.3
~0.1
_v setDamage 0.1
~0.1
_v setDamage 0
It sorta gets fixed.

Doolittle

Stone

  • Guest
Re:Repairing objects AND the appreance
« Reply #5 on: 31 Aug 2003, 20:34:17 »
Thanx for tips people !    ;)

Offline Terox

  • Former Staff
  • ****
  • Follow the Sappers!
    • zeus-community.net
Re:Repairing objects AND the appreance
« Reply #6 on: 01 Sep 2003, 17:44:02 »
If you setDamage something to 0 too fast then it stays crushed.  If you do something like:
_v setDamage 0.5
~0.1
_v setDamage 0.3
~0.1
_v setDamage 0.1
~0.1
_v setDamage 0
It sorta gets fixed.

Doolittle


Does it, wow didnt know that :-)

when you say sorta  what do you mean exactly
« Last Edit: 01 Sep 2003, 17:44:46 by Terox »
Zeus ARMA2 server IP = 77.74.193.124 :2302
Teamspeak IP = 77.74.193.123