Home   Help Search Login Register  

Author Topic: basic scripting attempt  (Read 965 times)

0 Members and 1 Guest are viewing this topic.

El-Mariachi

  • Guest
basic scripting attempt
« on: 18 Sep 2002, 23:57:49 »
ok heres my situation, i've got a bus full of civs with names a1 to a7, when they stop at a checkpoint i need my three guys (gunner1 to gunner3) to open fire on the civvies as they get of the bus to leg it. i have tried to make a script for it but i can't get it to work, here is what i've been using

#start

_player = ap
_gunner1 dofire a1
_gunner1 dofire a2
_gunner1 dofire a3
_gunner1 dofire a4
_gunner1 dofire a5
_gunner1 dofire a6
_gunner1 dofire a7
_gunner2 dofire a1
_gunner2 dofire a2
_gunner2 dofire a3
_gunner2 dofire a4
_gunner2 dofire a5
_gunner2 dofire a6
_gunner2 dofire a7
_gunner3 dofire a1
_gunner3 dofire a2
_gunner3 dofire a3
_gunner3 dofire a4
_gunner3 dofire a5
_gunner3 dofire a6
_gunner3 dofire a7

exit

its very basic but this would be my first attempt at scripting, any help guys?

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re:basic scripting attempt
« Reply #1 on: 19 Sep 2002, 00:04:26 »
u just need 2 remove da  _ from da start of everythin (da _ b4 sothin is indicatin a local vari not a startof line  ;))

here is how it should look

Code: [Select]
#start

player = ap
gunner1 dofire a1
gunner1 dofire a2
gunner1 dofire a3
gunner1 dofire a4
gunner1 dofire a5
gunner1 dofire a6
gunner1 dofire a7
gunner2 dofire a1
gunner2 dofire a2
gunner2 dofire a3
gunner2 dofire a4
gunner2 dofire a5
gunner2 dofire a6
gunner2 dofire a7
gunner3 dofire a1
gunner3 dofire a2
gunner3 dofire a3
gunner3 dofire a4
gunner3 dofire a5
gunner3 dofire a6
gunner3 dofire a7

exit

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

Offline icarus_uk

  • Members
  • *
  • LiarLiarPants Inflame True
    • [furryclan]
Re:basic scripting attempt
« Reply #2 on: 19 Sep 2002, 00:18:34 »
Thats exactly what I said in the other thread on this.  Duplicate threads are not needed, and will most likely get locked.

The other thread is here.
« Last Edit: 19 Sep 2002, 00:22:34 by [icarus_uk] »

Offline Sui

  • Former Staff
  • ****
    • OFPEC
Re:basic scripting attempt
« Reply #3 on: 19 Sep 2002, 01:38:19 »
Welcome to the forums, El-Mariachi

In future please contact a moderator (Use the IM button on the left there, or the report post button bottom right) and ask them to move your thread, rather than posting another one with the same question ;)

Thanks mate...