EnglishGermanFrenchRussianItalianSpanish
Log inRegister
 
[SCR] Turret On/Off Hotkey
Post new topic Reply to topic
View previous topic :: View next topic
Author Message
Gazz





Joined: 13 Jan 2006
Posts: 12424 on topic
Location: Bavaria
Thank you for registering your game
PostPosted: Sat, 28. Jun 08, 14:27    Post subject: [SCR] Turret On/Off Hotkey Reply with quote Print

(Das entsprechende deutsche Topic ist hier.)

  • This script installs 1 hotkey.

  • Pressing the hotkey pauses all turrets on your ship for 5 minutes or until you change sectors.
    Whatever comes first.

  • Pressing the hotkey again unlocks your turrets.

  • Starting a new turret script on one turret unlocks that particular turret.

  • If you have one of your ships targeted and this ship does have turrets, the pause/continue is applied to that ship instead of yours.

  • Some of you may now say that this already exists here.
    The difference is that this script here works with all current and future turret scripts without any changes.
    It also doesn't disable the turrets indefinitely. I sometimes forgot turning them back on and didn't even notice since I had switched to another ship.

(ZIP + SPK)


_________________
My complete script download page. . . . . . I AM THE LAW!
There is no sense crying over every mistake. You just keep on trying till you run out of cake.
Back to top
View user's profile Send private message Visit poster's website
Lancefighter





Joined: 19 Dec 2004
Posts: 2936 on topic

Thank you for registering your game
PostPosted: Sat, 28. Jun 08, 18:48    Post subject: Reply with quote Print

Strange...

You have this line:

$Target -> interrupt task $Nr.of.turrets with script "plugin.gz.turret.onoff.turret" and prio 5 : arg1= null arg2= null arg3= null arg4= null


does the 'get number of turrets' command also get them in such a way that you can command them like you are?

And my general overview of the script is that it will put a task in front of the current turret script, and wait until the timer is up, then get rid of said task. Is this correct?

I also note you get the number of turrets multiple times... is that needed?


_________________
in the market for a new sig, willing to pay 1 billion credits for a proper sig...
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic Reply to topic
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum
Control Panel
Login Data
The time now is Mon, 16. Jul 18, 16:46

All times are GMT + 2 Hours

[ Disclaimer / Impressum ] | [ Privacy Policy / Datenschutz ]

Board Security

Copyright © EGOSOFT 1989-2018
Powered by phpBB © 2001, 2005 phpBB Group
Template created by Avatar & BurnIt!
Debug: page generation = 0.35676 seconds, sql queries = 16