OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: OFPfreak on 25 Mar 2005, 03:16:01
-
I've been playing around lately and found a really neat idea! Here it is:
b0 = "GlockS" camcreate getpos bomb
bomb setvelocity [0,0,20]
~2.5
bomb setdammage 1
b1 = "laserguidedbomb" camcreate getpos bomb
b2 = "heat125" camcreate getpos bomb
b2 = "shell125" camcreate getpos bomb
b3 = "smokeshell" camcreate getpos bomb
b1 setpos (getpos bomb)
b4a = "smokeshellred" camcreate getpos bomb
b4 = "smokeshell" camcreate getpos bomb
#loop
b4a setpos (getpos bomb)
b4 setpos (getpos bomb)
~0.1
goto "loop"
exit
This is best placed on a barrel. So just name your barrel bomb and make a trigger next to it. Make the trigger like this:
Condition: not (alive bomb)
On Activation: bomb exec "whateveryounamedthescript.sqs"
It has a nice smoke grenade upon impact. The only thing that really sux is that you can see the camcreations of the bombs and stuff! The FAQ will be next.
Q. Why does the script have glockS in it?
A. So when the actual explosion goes off, the object moves instead of standing still.
Q. Wow so much weapons and it does too much damage!
A. Feel free to modify the list of weapons it cam creates.
Oh and please no offense I know its only a tiny stupid script but please don't blame me :(!
-
what exactly is the point of this? it seems like it would make lots of lag :-\
what did you intend this script to do
oh and you should add, these,
_bomb = this select 0
just put that in the begining and every time the word bomb is in your script, just add a _ infront of it
that will make it more versitile ;)
-
hm..
firstly, sorry I forgot to tell what it does. It makes a cool explosion effect on barrels only theres too much explosives somone should tweak it if they want.
secondly, what does the _bomb = this select 0 do again I forgot
-
when you call a script with something in the brackets, [like] exec "this.sqs", in the script you use _variablename = _this select n, where n is the position in the array used when calling the script - the bit between the brackets.
with respect, surely you should know this kind of stuff before submitting scripts.
and incidentally - your sig - what is "flashoint"?
-
firstly, sorry I forgot to tell what it does. It makes a cool explosion effect on barrels
yes i can see that from looking at it but what r some uses for it? I dont see what this could be used for
-
yes i can see that from looking at it but what r some uses for it? I dont see what this could be used for
Nor why it is doing in editing/scripting: general. Should be in Scripting: Beta Testing or submitted to the ed depot or whatever.
:beat: *Gets Shot* :beat:
-
well, im surer it has some purpose. tell ya what
why dont you make a neat demo mission showing what it does, put in scripting beta testing. im sure then it will be come apparent.
if u run into any trouble, just drop me a pm ;)