Home   Help Search Login Register  

Author Topic: Bomb script  (Read 1105 times)

0 Members and 1 Guest are viewing this topic.

Offline Killzone

  • Members
  • *
  • War is the true Enemy
Bomb script
« on: 22 Nov 2002, 22:09:39 »
Can someone make a script that allows the droping  of 5   laserguidedbombs from 1000, 1200, 1300, 1400, 1500 ft (So they don't all hit the ground at once)  I want to be able to select anywhere on the map as a target and do it repeatedly.

I am not good with scripts (actually I suck)

This would come in real handy

If there is already a script for this I could not find it.

Thanks in advance ;D
"Everyone dies so deal with it and move on"

                                                      ME

_hammy_

  • Guest
Re:Bomb script
« Reply #1 on: 23 Nov 2002, 04:44:47 »
Code: [Select]
; made by HAMMY
; this script is quite simple, to activate: [target1, target2, target 3, target 4, target 5] exec "bomb.sqs"

_t1 = _this select 0
_t2 = _this select 1
_t3 = _this select 2
_t4 = _this select 3
_t5 = _this select 4

"LASERGUIDEDBOMB" camCreate [(_t1 select 0),(_t1 select 1), +0]
~3.5
"LASERGUIDEDBOMB" camCreate [(_t2 select 0),(_t2 select 1), +0]
~3.5
"LASERGUIDEDBOMB" camCreate [(_t3 select 0),(_t3 select 1), +0]
~3.5
"LASERGUIDEDBOMB" camCreate [(_t4 select 0),(_t4 select 1), +0]
~3.5
"LASERGUIDEDBOMB" camCreate [(_t5 select 0),(_t5 select 1), +0]
~3.5

exit

I have not tryed this ingame, so if u have any problems, tell me
« Last Edit: 23 Nov 2002, 04:50:27 by HAMMY »

Offline Killzone

  • Members
  • *
  • War is the true Enemy
Re:Bomb script
« Reply #2 on: 23 Nov 2002, 21:49:58 »
I have not tried this yet, but thanks for the help either way
"Everyone dies so deal with it and move on"

                                                      ME

Offline Killzone

  • Members
  • *
  • War is the true Enemy
Re:Bomb script
« Reply #3 on: 23 Nov 2002, 22:41:12 »
I tried it I can't get it to work. I may be doing something wrong. Am I supposed to put exec "bomb.sqs" in a trigger?

Here is the error message I get

"laserguidedbomb" camcreate [(_T1 select 0), (_T1 select1) +0] Error type any, expected number.

Knowing my skill in the editor it is probably something I am doing wrong. Any help would be great. ;D
"Everyone dies so deal with it and move on"

                                                      ME

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re:Bomb script
« Reply #4 on: 24 Nov 2002, 01:14:21 »
Quote
"LASERGUIDEDBOMB" camCreate [(_t1 select 0),(_t1 select 1), +0]

Quote
"laserguidedbomb" camcreate [(_T1 select 0), (_T1 select1) +0]

compare dis 2 lines  :o  ;D

dey r not looking da same   :-* :P ;D

u need da first line not da sec  ;D

LCD OUT
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta

_hammy_

  • Guest
Re:Bomb script
« Reply #5 on: 24 Nov 2002, 03:42:10 »
yes, lCD is right, it should be:

Code: [Select]
"LASERGUIDEDBOMB" camCreate [(_t1 select 0),(_t1 select 1), +0]

instead of:

Code: [Select]
"laserguidedbomb" camcreate [(_T1 select 0), (_T1 select1) +0] :D

Offline Killzone

  • Members
  • *
  • War is the true Enemy
Re:Bomb script
« Reply #6 on: 24 Nov 2002, 08:49:56 »
Do I replace each line or  just hthe first?

I replaced the every line so it looks like this.

; made by HAMMY
; this script is quite simple, to activate: [target1, target2, target 3, target 4, target 5] exec "bomb.sqs"

_t1 = _this select 0
_t2 = _this select 1
_t3 = _this select 2
_t4 = _this select 3
_t5 = _this select 4

""laserguidedbomb" camcreate [(_T1 select 0), (_T1 select1) +0]
~3.5
""laserguidedbomb" camcreate [(_T2 select 0), (_T2 select1) +0]
~3.5
""laserguidedbomb" camcreate [(_T3 select 0), (_T3 select1) +0]
~3.5
"laserguidedbomb" camcreate [(_T4 select 0), (_T4 select1) +0]
~3.5
""laserguidedbomb" camcreate [(_T5 select 0), (_T5 select1) +0]
~3.5

exit

I still get this error:
That says unkown operater

Am I supposed to put exec "bomb.sqs" in the initialization of my player or do put this in  a repeating trigger. I don't even know how to get this script to activate. I hardly do any editing.

I want to say I really appreciate all the help I have gotten. I am sure this is 99% of me not doing something right.

Thanks in advance
"Everyone dies so deal with it and move on"

                                                      ME

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re:Bomb script
« Reply #7 on: 24 Nov 2002, 11:35:21 »
LOl - i think ur geting blind  ;D  :o
dats hilarius

all u need 2 change is add , between da (_T1 select1) and da +0

Lol

like in dis line
Code: [Select]
"LASERGUIDEDBOMB" camCreate [(_t1 select 0),(_t1 select 1), +0]

look good plz  :o  :P

LCD OUT
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta