Home   Help Search Login Register  

Author Topic: Searching for a fire script  (Read 1840 times)

0 Members and 3 Guests are viewing this topic.

OpF_sp

  • Guest
Searching for a fire script
« on: 26 May 2005, 08:28:16 »
Hi,

I'm searching a script making a fire like that on the picture below.
I know thats availiable, because I had found such a script few months ago, but I can't find it again.  ???


Thanks for your help!

OpF_sp
http://www.opf-sp.net.tc

Offline bedges

  • Administrator
  • *****
    • OFPEC The Editing Center
Re:Searching for a fire script
« Reply #1 on: 26 May 2005, 08:39:24 »
try typing 'fire' into the editor's depot search box.

3 pages of results...

OpF_sp

  • Guest
Re:Searching for a fire script
« Reply #2 on: 26 May 2005, 11:20:46 »
Thanks,
i found a script but it doesn't work. Can anyone help me?

That's the script "fire.sqs":

Code: [Select]
_object = _this select 0
_time = 0

#burn

drop ["cl_fire","","Billboard",1,0.7,[random(0.75)-2.5,random(0.75)-4,random(0.75)-1.5],[random(15),random(15),30],0,1.2,0.2,random(0.2),[random(3),random(5),0],[1,1,1,1],[1,1,1,0], ,0,0,"","",_object]
drop ["cl_fire","","Billboard",1,0.7,[random(0.75)-2.5,random(0.75)-4,random(0.75)-1.5],[random(10),random(10),15],0,1.2,random(0.2),random(0.2),[random(3),random(5),0],[1,1,1,1],[1,1,1,0], ,0,0,"","",_object]
drop ["cl_fire","","Billboard",1,0.7,[random(0.75)-2.5,random(0.75)-4,random(0.75)-1.5],[random(0.2),random(0.2),0.5],0,1.2,random(0.2),random(0.2),[random(3),random(5),0],[1,1,1,1],[1,1,1,0], ,0,0,"","",_object]
drop ["cl_basic","","Billboard",5,random(10),[random(0.75)-2.5,random(0.75)-4,random(0.75)-1.5],[random(1),random(1),random(10)],0,0.75,1,random(1),[1,random(10)+10],[0,0,0,0.9],[0.4,0.4,0.4,0], ,0,0,"","",_object]

_time=_time + 1
?_time >=1000:goto "exit"
goto "burn"

#exit
exit
The Script will be activated by: [objectname]exec "fire.sqs"

If you  find the mistake please post it!

OpF_sp
http://www.opf-sp.net.tc/



Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Searching for a fire script
« Reply #3 on: 26 May 2005, 11:25:41 »
OpF_sp,

Wecome to the forum!

The script uses the reserved variable _time which probably isn't helping.    But what do you mean "it doesn't work"?   What did you do?  What went wrong?  How do you know it doesn't work?   Whose script is it?
Plenty of reviewed ArmA missions for you to play

Offline General Barron

  • Former Staff
  • ****
  • Semper Fi!
Re:Searching for a fire script
« Reply #4 on: 26 May 2005, 21:37:32 »
This wouldn't be the problem, but the script should really have a delay between each loop. A script like that is going to lag the bejeezus out of ofp...
HANDSIGNALS COMMAND SYSTEM-- A realistic squad-control modification for OFP
kexp.org-- The best radio station in the world, right here at home! Listen to John Richards!

OpF_sp

  • Guest
Re:Searching for a fire script
« Reply #5 on: 27 May 2005, 20:26:50 »
OpF_sp,

Wecome to the forum!

But what do you mean "it doesn't work"?   What did you do?  What went wrong?  How do you know it doesn't work?

I put this script in a simple Mission: I've put into the init of the soldier named S this command: exec "fire.sqs".
If I want to test the script now in the preview, following text appear:
 

Offline bedges

  • Administrator
  • *****
    • OFPEC The Editing Center
Re:Searching for a fire script
« Reply #6 on: 28 May 2005, 16:58:51 »
hmmm... unfortunately the screengrab of the message cuts off before the helpful part, which is usually marked by a [ # ]  at the place where flashpoint is having problems.

if you could tell us what script you're using - i.e. where you got it - we might be able to help better.  :-\


Offline bedges

  • Administrator
  • *****
    • OFPEC The Editing Center
Re:Searching for a fire script
« Reply #8 on: 28 May 2005, 20:12:48 »
well at first glance the drop command requires 19 parameters and each drop command in the script you supplied has 20...

i shall investigate to see what's what, and return your mini mission in full working order - hopefully ;)

edit - well, it seems the error is "type number, expected array"... in the meantime, may i respectfully suggest this fire script - it's the one i use and simplicity to call in a mission. it also works  ::)

edit 2 - all done. i added a tiny pause too as the script was lagging like crazy. see attached.
« Last Edit: 28 May 2005, 21:37:07 by bedges »

OpF_sp

  • Guest
Re:Searching for a fire script
« Reply #9 on: 29 May 2005, 09:01:58 »
 ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D
!!IT WORKS!!

Thank's at all, especially at you  bedges.

OpF_sp


http://www.opf-sp.net.tc

Offline bedges

  • Administrator
  • *****
    • OFPEC The Editing Center
Re:Searching for a fire script
« Reply #10 on: 29 May 2005, 11:50:47 »
no probs - it's what we're here for ;)

also, click the 'solve' button to show the thread is complete, just to round things off.
« Last Edit: 29 May 2005, 11:52:49 by bedges »