Home   Help Search Login Register  

Author Topic: A Shooting Range  (Read 489 times)

0 Members and 1 Guest are viewing this topic.

Monty

  • Guest
A Shooting Range
« on: 24 Dec 2003, 16:09:24 »
I used to have a script that allowed me to add an action to a computer I had sitting on a table that would reset all of the targets on my shooting range. I seemed to have lost it. I believe it had something to do with setDammage. Could someone please give me an example of how I can do this below. I need to know what to put in the init of the computer to add the action and what the script should look like. It would be really nice if I could have it so that you could choose which lane you want to reset, like RESET LANE 1, 2, etc. Could probably just use multipul scripts for that and 2 add actions if I had 2 lanes. Any help will be greatly appreciated.

Thanks!
« Last Edit: 24 Dec 2003, 16:11:07 by Monty »

GrimMonkey

  • Guest
Re:A Shooting Range
« Reply #1 on: 24 Dec 2003, 19:15:22 »
This is my first post in a long time!

Okay, in the computer's init. filed, type:

ActionID = This AddAction ["Reset Lane 1", "Lane1.sqs"]
ActionID = This AddAction ["Reset Lane 2", "Lane2.sqs"]

And the script would look something like this (I think):
Code: [Select]
[i]Target1[/i] SetDammage 0
[i]Target2[/i] SetDammage 0
[i]Target3[/i] SetDammage 0
[i]Target4[/i] SetDammage 0
Save all above in purple as Lane1.sqs

For the second:
Code: [Select]
[i]Target5[/i] SetDammage 0
[i]Target6[/i] SetDammage 0
[i]Target7[/i] SetDammage 0
[i]Target8[/i] SetDammage 0
Save all above in purple as Lane2.sqs

I think this will work, not guarunteed.


Beware the GrimMonkey