OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: OpF_sp on 26 May 2005, 08:28:16

Title: Searching for a fire script
Post by: OpF_sp 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.  ???
(http://www.beepworld.de/memberdateien/members16/thiemofrank/feuer.jpg)

Thanks for your help!

OpF_sp
http://www.opf-sp.net.tc  (http://www.opf-sp.net.tc)
Title: Re:Searching for a fire script
Post by: bedges on 26 May 2005, 08:39:24
try typing 'fire' into the editor's depot search box.

3 pages of results...
Title: Re:Searching for a fire script
Post by: OpF_sp 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/ (http://www.opf-sp.net.tc/)


Title: Re:Searching for a fire script
Post by: macguba 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?
Title: Re:Searching for a fire script
Post by: General Barron 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...
Title: Re:Searching for a fire script
Post by: OpF_sp 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:
(http://www.beepworld.de/memberdateien/members16/thiemofrank/beispiel.jpg)  
Title: Re:Searching for a fire script
Post by: bedges 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.  :-\
Title: Re:Searching for a fire script
Post by: OpF_sp on 28 May 2005, 17:46:10
Here is the mission:
http://www.uploads.ofp2-forum.de/cgi-bin/files/upload.cgi?a=show&file=746573742e6162656c2e726172&big=1 (http://www.uploads.ofp2-forum.de/cgi-bin/files/upload.cgi?a=show&file=746573742e6162656c2e726172&big=1)
Title: Re:Searching for a fire script
Post by: bedges 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 (http://www.ofpec.com/editors/resource_view.php?id=690) 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.
Title: Re:Searching for a fire script
Post by: OpF_sp 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 (http://www.opf-sp.net.tc)
Title: Re:Searching for a fire script
Post by: bedges 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.