Home   Help Search Login Register  

Author Topic: A litle but nice script!  (Read 932 times)

0 Members and 1 Guest are viewing this topic.

Offline OFPfreak

  • Members
  • *
  • Who is da operation flashpoint freak now, freak?!
    • OFP NFS mod
A litle but nice script!
« on: 25 Mar 2005, 03:16:01 »
I've been playing around lately and found a really neat idea! Here it is:

Code: [Select]
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 :(!
ofp nfs REBORN! All new nitro, neon, customized cars, off-road, on-road, rally, bikes, racer models and more!
ofp nfs's homepage

Offline penguinman

  • Contributing Member
  • **
  • Money is worthless, just paper, ink, and threads
Re:A litle but nice script!
« Reply #1 on: 25 Mar 2005, 06:03:59 »
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 ;)
« Last Edit: 25 Mar 2005, 06:07:12 by penguinman »

Offline OFPfreak

  • Members
  • *
  • Who is da operation flashpoint freak now, freak?!
    • OFP NFS mod
Re:A litle but nice script!
« Reply #2 on: 25 Mar 2005, 21:25:38 »
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
ofp nfs REBORN! All new nitro, neon, customized cars, off-road, on-road, rally, bikes, racer models and more!
ofp nfs's homepage

Offline bedges

  • Administrator
  • *****
    • OFPEC The Editing Center
Re:A litle but nice script!
« Reply #3 on: 25 Mar 2005, 21:32:20 »
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"?
« Last Edit: 25 Mar 2005, 21:33:01 by bedges »

Offline penguinman

  • Contributing Member
  • **
  • Money is worthless, just paper, ink, and threads
Re:A litle but nice script!
« Reply #4 on: 26 Mar 2005, 21:49:20 »
Quote
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

Offline dmakatra

  • Members
  • *
  • Better known as Armsty
Re:A litle but nice script!
« Reply #5 on: 26 Mar 2005, 22:04:50 »
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:

Offline penguinman

  • Contributing Member
  • **
  • Money is worthless, just paper, ink, and threads
Re:A litle but nice script!
« Reply #6 on: 27 Mar 2005, 07:57:05 »
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 ;)