Home   Help Search Login Register  

Author Topic: Burn Baby Burn!  (Read 450 times)

0 Members and 1 Guest are viewing this topic.

MEDICUS

  • Guest
Burn Baby Burn!
« on: 26 May 2003, 13:35:11 »
Can anyone help me?

How can i make shot vehicles burn? Do i need to write something in the Init-line or do i have to write a script? What do i have to write?

THX!

Knut Erik

  • Guest
Re:Burn Baby Burn!
« Reply #1 on: 26 May 2003, 14:28:23 »
You'll need a burn script. I think there is one in the Ed depot   ;)

B-2-0

  • Guest
Re:Burn Baby Burn!
« Reply #2 on: 26 May 2003, 14:50:13 »
I don't know if u are but just in case....If u are making a MP map and u want the vehicles to burn then respawn, use this vehicle respawn script ;)

------------------------------------------------------------


;VehicleRespawn.sqs

?!(local server) : exit
_vehic = _this select 0
_time = _this select 1
_type = typeof _vehic
_pos = getpos _vehic
_dir = getdir _vehic

#loop
_vehic addEventHandler ["killed", {[[0,0,0],[0,0,0],60,3+random 3,_this select 0] exec "\KEGnoecain_snow\script\destroy.sqs"}]
@!(alive _vehic)
~_time
deletevehicle _vehic
_vehic = _type createvehicle [0,0]
_vehic setpos _pos
_vehic setdir _dir
_vehic setdamage 0
goto "loop"
-----------------------------------------------------------------------

Save it as VehicleRespawn.sqs

And put this in each vehicle's init field:

[VehicleName,RespawnTime] exec "VehicleRespawn.sqs"