OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Spliff air on 25 Aug 2002, 19:45:11
-
I have been looking for a tank on fire script for ages and ive tried triggers but nothing works
-
By thi do you mean that you want to make it look like the tank is on fire, or a script that tells the player that the tank is on fire and will explode if he is not out by a certain time limit?
Also check the res script (I remember a thread on this forum called "Fires like those in Resistance" look for that)
-
uh not exatly what i want is this u are in a tank and u see another tank u shot the tank but instead of the tank blowing up i want it to catch fire and then the crew bail out
-
hmm, check if the enemy tank's damage level is at a certain level, than use firesource.sqs to create fire on the tank, than give the tank crew the "crew1 action ["eject"]" command, than after a while (using ~random x) make the tank blow up.
ill write the script for you later today, but im gonna eat. ill post it in an hour or so.
peace
tai mai shu :afro: :booty: :wave:
-
no i dont want the tank to blow up just stay on fire
-
Well then just take out the setdammage 1 command...
Init.sqs
_tank = tank
_crew1 = crew1
_crew2 = crew2
_crew3 = crew3
_crew1 moveindriver _tank
_crew2 moveingunner _tank
_crew3 moveincommander _tank
Fire.sqs
_tank = tank
_crew1 = crew1
_crew2 = crew2
_crew3 = crew3
[_tank] exec "fireresource.sqs"
~2
[_crew1,_crew2,_crew3] action ["eject"]
It should work but you need a tank called tank, and three crew member called crew1,2, and 3...
-
there are 11 tanks
-
Well then just adapt the script for use in 11 tanks...
;D
_tank = tank
_crew1 = crew1
_crew2 = crew2
_crew3 = crew3
_crew1 moveindriver _tank
_crew2 moveingunner _tank
_crew3 moveincommander _tank
_tank2 = tank2
_crew12 = crew12
_crew22 = crew22
_crew32 = crew32
_crew12 moveindriver _tank2
_crew22 moveingunner _tank2
_crew32 moveincommander _tank2
_tank3 = tank3
_crew13 = crew13
_crew23 = crew23
_crew33 = crew33
_crew13 moveindriver _tank3
_crew23 moveingunner _tank3
_crew33 moveincommander _tank3
etc until you have _tank11
-
This script is located in the forums at the http://www.thecorps.insideofp.com (http://www.thecorps.insideofp.com) and is made by Evil_Joe. There is also a script that puts one engine on the c47 on fire and smoking. As well as a crash'n'burn script. Also an amazing paradrop script which u say which order they jump at, and how long between each jump.
-
This script is located in the forums at the http://www.thecorps.insideofp.com (http://www.thecorps.insideofp.com) and is made by Evil_Joe. There is also a script that puts one engine on the c47 on fire and smoking. As well as a crash'n'burn script. Also an amazing paradrop script which u say which order they jump at, and how long between each jump.
Dead link :'(
-
there is a good fire script in the Campaign "Resistance". Somebody see it yet ? :P