View Single Post
Old 03-15-11, 08:31 AM   #9
DrJones
Samurai Navy
 
Join Date: Jun 2009
Location: Germany, 50 Kilometers away from Kiel
Posts: 576
Downloads: 341
Uploads: 0
Default

Sorry postet the wrong piece of code... to find in line 879 - 907

this is the right one

def Station_Activated( station ):
import UserInteractionStationsManager
if station == UserInteractionStationsManager.UserInteractionStat ionsManager.ActiveStation:
PageDefaultHud_EnterNearbyStationButton.Tooltip = "Leave station"
from ObservationPeriscope import ObservationPeriscopeStation
from AttackPeriscope import AttackPeriscopeStation
from UZO import UZOStation
if station == ObservationPeriscopeStation or station == AttackPeriscopeStation or station == UZOStation:
global FeedBackModeWasMinimizedWhenEnteringPeriscope
global FeedBackMode
FeedBackModeWasMinimizedWhenEnteringPeriscope = FeedBackMode == FeedBackModes.Minimized
SetMapLayer( PageDefaultHud_MapGroup_Mapcontrol, MapLayer_Periscope, True )
if Game.Mission.IsTutorial:
SetFeedBackMode( FeedBackModes.Minimized, Instant.Yes )
else:
SetFeedBackMode( FeedBackModes.TAI, Instant.No )
if station == ObservationPeriscopeStation:
#DisplayPlayerGuidanceButton( PageDefaultHud_PlayerGuidance_Small_ObservationPer iscope )
Game.SubmarineCommands.ExecuteCommand( "Rise_whole_obs_periscope" )
if station == AttackPeriscopeStation:
#DisplayPlayerGuidanceButton( PageDefaultHud_PlayerGuidance_Small_AttackPeriscop e )
Game.SubmarineCommands.ExecuteCommand( "Rise_whole_periscope" )
from Hydrophone import HydrophoneStation
if station == HydrophoneStation:
SetMapLayer( PageDefaultHud_MapGroup_Mapcontrol, MapLayer_Hydrophone, True )
if ScriptManagerManaged.IsScriptLoaded( "DeckGun" ):
from DeckGun import DeckGunStation
if station == DeckGunStation:
DisplayPlayerGuidanceButton( PageDefaultHud_PlayerGuidance_Small_Cannon )

the rest is trying how it works

greeting
DrJones is offline   Reply With Quote