View Single Post
Old 03-17-12, 09:52 AM   #93
Dwail
Sailor man
 
Join Date: Sep 2007
Location: Elche, Spain.
Posts: 43
Downloads: 196
Uploads: 0
Default

Hi! Rubini. Could you create this scrip?

Quote:
Originally Posted by Dwail
Hi, Stormfly. Am I another time!!. Sorry if only comment for problems. This is the situation:

In my "commands.cfg" :

**********************************
[Cmd436]
Name=Toggle_battle_stations
Contexts=1
HasDelayedExecution=Yes
Key0=0x42,s,"B" ;(Shift+B)
Sound_0=ELO_Weapon,MC_CR_SO_01_A (sound for activate battle stations)
***********************************

Sound_0=ELO_Weapon,MC_CR_SO_03 *This line add for me, contains the correct sound to deactivate battle stations. But I don't know if is possible incorporate this line to [Cmd436].

I'd like this:

- first push of key (shift+b) for toggle_battle_stations (on)
with Sound_0=ELO_Weapon,MC_CR_SO_01_A

- second push of key (shift+b) for toggle_battle_stations (off)
with Sound_0=ELO_Weapon,MC_CR_SO_03

If possible do it? How?


**************************
yes i was after that long time ago, it is a known problem...

...there is only one command for battlestations which is toggleing it, there are no seperate commands for battlestations on or off.

but there are maybe 1 old and possible 1 new solution after what we have discovered so far:

1. dont use the key at all, use the weapons officer`s dialog menue.

2. connect the keystroke command with a script (as Rubini did for commanding the crew to go up or below the cunning tower), which can check if crew is on battlestions or not, then you can use the script to play the sounds accordingly. (maybe you just need to add a crew script, which have the exact name as the command).

example:
if Wp:Isbattlestations() then or something similar.
Dwail is offline   Reply With Quote