Home   Help Search Login Register  

Author Topic: Can you make a vehicle so that it does not take damage?  (Read 435 times)

0 Members and 2 Guests are viewing this topic.

fiskey

  • Guest
Looking for a way to get my c-47 through flak without being destroyed. Figured there must be some way to make a vehicle so that it can not be destroyed

Offline myke13021

  • Contributing Member
  • **
  • Myke
Re:Can you make a vehicle so that it does not take damage?
« Reply #1 on: 14 Apr 2004, 23:22:22 »
a script like this should work

;repair.sqs

_vehic = _this select 0

#loop
~0.5
_dam = getdammage _vehic
?(_dam >= 0.2): goto "repair"
_vehic setfuel 1
goto "loop"

#repair
_vehic setdammage 0
goto "loop"

syntax not guaranteed, but i have a similar script working  ;)

:edit:
call it in the init line of the vehic you want to make undestructable:

[this] exec "repair.sqs"
« Last Edit: 14 Apr 2004, 23:23:30 by myke13021 »

Offline SilentHunter

  • Members
  • *
  • frozen leg'o'lamb (every gamers most loved weapon)
Re:Can you make a vehicle so that it does not take damage?
« Reply #2 on: 14 Apr 2004, 23:46:18 »
Quote
_vehic = _this select 0

#loop
~0.5
_dam = getdammage _vehic
?(_dam >= 0.2): goto "repair"
_vehic setfuel 1
goto "loop"

#repair
_vehic setdammage 0
goto "loop"

too much work man


you just need
;repair.sqs


Code: [Select]
_veh = _this select 0
#top
_veh setdammage 0
_veh setfuel 1
~0.01
goto "top"

then put in the init field of the vehicle

[this] exec "repair.sqs"

[size=4.5]NERDS HAVE FEELINGS TOO! [/size] [size=2.5]*adjusts glasses*[/size]

Kammak

  • Guest
Re:Can you make a vehicle so that it does not take damage?
« Reply #3 on: 14 Apr 2004, 23:48:27 »
or:

name = vTank

this addeventhandler["Dammaged",{vTank setdamage 0}]

in init field