|
G1R AngelScript
Scripting reference for the Gothic 1 Remake
|
Functions | |
Audio|FMOD | |
| float32 | GetGlobalParameterByName (FName Name) |
| Will be deprecated in FMOD 2.01, use GetGlobalParameterValueByName(FName, float, float) instead. Get a global parameter from the System. | |
| FFMODEventInstance | PlayEvent2D (UObject WorldContextObject, UFMODEvent Event, bool bAutoPlay) |
| Plays an event. This returns an FMOD Event Instance. The sound does not travel with any actor. | |
| void | LoadBankSampleData (UFMODBank Bank) |
| Load bank sample data. | |
| void | MixerSuspend () |
| Suspend the FMOD mixer. Used when suspending the application. | |
| void | UnloadEventSampleData (UObject WorldContextObject, UFMODEvent Event) |
| Unload event sample data. | |
| void | UnloadBankSampleData (UFMODBank Bank) |
| Unload bank sample data. | |
| void | UnloadBank (UFMODBank Bank) |
| Unloads a bank. | |
| void | SetOutputDriverByName (FString NewDriverName) |
| Set current output device by name or part of the name. | |
| void | SetOutputDriverByIndex (int NewDriverIndex) |
| Set current output device by its index from GetOutputDrivers. | |
| void | SetLocale (FString Locale) |
| Set the active locale for subsequent bank loads. | |
| void | SetGlobalParameterByName (FName Name, float32 Value) |
| Set a global parameter from the System. | |
| UFMODAudioComponent | PlayEventAttached (UFMODEvent Event, USceneComponent AttachToComponent, FName AttachPointName, FVector Location, EAttachLocation LocationType, bool bStopWhenAttachedToDestroyed, bool bAutoPlay, bool bAutoDestroy) |
| Plays an event attached to and following the specified component. | |
| FFMODEventInstance | PlayEventAtLocation (UObject WorldContextObject, UFMODEvent Event, FTransform Location, bool bAutoPlay) |
| Plays an event at the given location. This returns an FMOD Event Instance. The sound does not travel with any actor. | |
| TArray< FFMODEventInstance > | FindEventInstances (UObject WorldContextObject, UFMODEvent Event) |
| Return a list of all event instances that are playing for this event. Be careful using this function because it is possible to find and alter any playing sound, even ones owned by other audio components. | |
| void | MixerResume () |
| Resume the FMOD mixer. Used when resuming the application. | |
| bool | IsBankLoaded (UFMODBank Bank) |
| Returns true if a bank is loaded. | |
| UFMODAsset | FindAssetByName (FString Name) |
| Find an asset by name. | |
| UFMODEvent | FindEventByName (FString Name) |
| Find an event by name. | |
| void | LoadBank (UFMODBank Bank, bool bBlocking, bool bLoadSampleData) |
| Loads a bank. | |
| void | LoadEventSampleData (UObject WorldContextObject, UFMODEvent Event) |
| Load event sample data. This can be done ahead of time to avoid loading stalls. | |
| void | GetGlobalParameterValueByName (FName Name, float32 &UserValue, float32 &FinalValue) |
| Get a global parameter from the System. | |
| TArray< FString > | GetOutputDrivers () |
| List all output device names. | |
Audio|FMOD|Bus | |
| void | BusStopAllEvents (UFMODBus Bus, EFMOD_STUDIO_STOP_MODE stopMode) |
| Stops all EventInstances routed into the bus. | |
| void | BusSetPaused (UFMODBus Bus, bool bPaused) |
| Pause/Unpause all events going through this bus. | |
| void | BusSetVolume (UFMODBus Bus, float32 Volume) |
| Set volume on a bus. | |
| void | BusSetMute (UFMODBus Bus, bool bMute) |
| Mute/Unmute this bus. | |
Audio|FMOD|EventInstance | |
| void | EventInstanceRelease (FFMODEventInstance EventInstance) |
| Release an FMOD Event Instance. | |
| void | EventInstanceSetVolume (FFMODEventInstance EventInstance, float32 Volume) |
| Set volume on an FMOD Event Instance. | |
| void | EventInstanceSetTransform (FFMODEventInstance EventInstance, FTransform Location) |
| Set 3D attributes on a FMOD Event Instance. | |
| void | EventInstanceSetProperty (FFMODEventInstance EventInstance, EFMODEventProperty Property, float32 Value) |
| Set an FMOD event property on an FMOD Event Instance. | |
| void | EventInstanceSetPitch (FFMODEventInstance EventInstance, float32 Pitch) |
| Set pitch on an FMOD Event Instance. | |
| void | EventInstanceSetPaused (FFMODEventInstance EventInstance, bool Paused) |
| Pause/Unpause an FMOD Event Instance. | |
| void | EventInstanceSetParameter (FFMODEventInstance EventInstance, FName Name, float32 Value) |
| Set a parameter on an FMOD Event Instance. | |
| void | EventInstanceStop (FFMODEventInstance EventInstance, bool Release=false) |
| Stop an FMOD Event Instance. | |
| void | EventInstancePlay (FFMODEventInstance EventInstance) |
| Plays an FMOD Event Instance. | |
| void | EventInstanceKeyOff (FFMODEventInstance EventInstance) |
| Allow an FMOD Event Instance to continue past a sustain point. | |
| bool | EventInstanceIsValid (FFMODEventInstance EventInstance) |
| Returns whether this FMOD Event Instance is valid. The instance will be invalidated when the sound stops. | |
| void | EventInstanceGetParameterValue (FFMODEventInstance EventInstance, FName Name, float32 &UserValue, float32 &FinalValue) |
| Get a parameter on an FMOD Event Instance. | |
| float32 | EventInstanceGetParameter (FFMODEventInstance EventInstance, FName Name) |
| Will be deprecated in FMOD 2.01, use EventInstanceGetParameterValue(FFMODEventInstance, FName, float, float) instead. Get a parameter on an FMOD Event Instance. | |
Audio|FMOD|VCA | |
| void | VCASetVolume (UFMODVCA Vca, float32 Volume) |
| Set volume on a VCA. | |
Variables | |
Variables | |
| const TArray< FString > | OutputDrivers |
| void BusSetMute | ( | UFMODBus | Bus, |
| bool | bMute ) |
Mute/Unmute this bus.
| Bus | bus to use |
| bMute | mute |
| void BusSetPaused | ( | UFMODBus | Bus, |
| bool | bPaused ) |
Pause/Unpause all events going through this bus.
| Bus | bus to use |
| bPaused | paused |
| void BusSetVolume | ( | UFMODBus | Bus, |
| float32 | Volume ) |
Set volume on a bus.
| Bus | bus to use |
| Volume | volume |
| void BusStopAllEvents | ( | UFMODBus | Bus, |
| EFMOD_STUDIO_STOP_MODE | stopMode ) |
Stops all EventInstances routed into the bus.
| Bus | bus to use |
| stopMode | desired stop mode |
| float32 EventInstanceGetParameter | ( | FFMODEventInstance | EventInstance, |
| FName | Name ) |
Will be deprecated in FMOD 2.01, use EventInstanceGetParameterValue(FFMODEventInstance, FName, float, float) instead. Get a parameter on an FMOD Event Instance.
| EventInstance | Event instance |
| Name | Name of parameter |
| void EventInstanceGetParameterValue | ( | FFMODEventInstance | EventInstance, |
| FName | Name, | ||
| float32 & | UserValue, | ||
| float32 & | FinalValue ) |
Get a parameter on an FMOD Event Instance.
| EventInstance | Event instance |
| Name | Name of parameter |
| UserValue | Parameter value as set from the public API. |
| FinalValue | Final combined parameter value. |
| bool EventInstanceIsValid | ( | FFMODEventInstance | EventInstance | ) |
Returns whether this FMOD Event Instance is valid. The instance will be invalidated when the sound stops.
| EventInstance | Event instance |
| void EventInstanceKeyOff | ( | FFMODEventInstance | EventInstance | ) |
Allow an FMOD Event Instance to continue past a sustain point.
| EventInstance | Event instance |
| void EventInstancePlay | ( | FFMODEventInstance | EventInstance | ) |
Plays an FMOD Event Instance.
| EventInstance | Event instance |
| void EventInstanceRelease | ( | FFMODEventInstance | EventInstance | ) |
Release an FMOD Event Instance.
| EventInstance | Event instance |
| void EventInstanceSetParameter | ( | FFMODEventInstance | EventInstance, |
| FName | Name, | ||
| float32 | Value ) |
| void EventInstanceSetPaused | ( | FFMODEventInstance | EventInstance, |
| bool | Paused ) |
Pause/Unpause an FMOD Event Instance.
| EventInstance | Event instance |
| Paused | Whether to pause or unpause |
| void EventInstanceSetPitch | ( | FFMODEventInstance | EventInstance, |
| float32 | Pitch ) |
Set pitch on an FMOD Event Instance.
| EventInstance | Event instance |
| void EventInstanceSetProperty | ( | FFMODEventInstance | EventInstance, |
| EFMODEventProperty | Property, | ||
| float32 | Value ) |
| void EventInstanceSetTransform | ( | FFMODEventInstance | EventInstance, |
| FTransform | Location ) |
Set 3D attributes on a FMOD Event Instance.
| EventInstance | Event instance |
| Location | Location to place event |
| void EventInstanceSetVolume | ( | FFMODEventInstance | EventInstance, |
| float32 | Volume ) |
Set volume on an FMOD Event Instance.
| EventInstance | Event instance |
| void EventInstanceStop | ( | FFMODEventInstance | EventInstance, |
| bool | Release = false ) |
Stop an FMOD Event Instance.
| EventInstance | Event instance |
| Release | Whether to release the Event Instance |
| UFMODAsset FindAssetByName | ( | FString | Name | ) |
Find an asset by name.
| UFMODEvent FindEventByName | ( | FString | Name | ) |
Find an event by name.
| TArray< FFMODEventInstance > FindEventInstances | ( | UObject | WorldContextObject, |
| UFMODEvent | Event ) |
Return a list of all event instances that are playing for this event. Be careful using this function because it is possible to find and alter any playing sound, even ones owned by other audio components.
| Event | event to find instances from. |
| float32 GetGlobalParameterByName | ( | FName | Name | ) |
| void GetGlobalParameterValueByName | ( | FName | Name, |
| float32 & | UserValue, | ||
| float32 & | FinalValue ) |
| bool IsBankLoaded | ( | UFMODBank | Bank | ) |
Returns true if a bank is loaded.
| Bank | bank to query |
| void LoadBank | ( | UFMODBank | Bank, |
| bool | bBlocking, | ||
| bool | bLoadSampleData ) |
Loads a bank.
| Bank | bank to load |
| bBlocking | determines whether the bank will load synchronously |
| bLoadSampleData | determines whether sample data will be preloaded immediately |
| void LoadBankSampleData | ( | UFMODBank | Bank | ) |
Load bank sample data.
| Bank | bank to load sample data from |
| void LoadEventSampleData | ( | UObject | WorldContextObject, |
| UFMODEvent | Event ) |
Load event sample data. This can be done ahead of time to avoid loading stalls.
| Event | event to load sample data from. |
| void MixerResume | ( | ) |
Resume the FMOD mixer. Used when resuming the application.
| void MixerSuspend | ( | ) |
Suspend the FMOD mixer. Used when suspending the application.
| FFMODEventInstance PlayEvent2D | ( | UObject | WorldContextObject, |
| UFMODEvent | Event, | ||
| bool | bAutoPlay ) |
Plays an event. This returns an FMOD Event Instance. The sound does not travel with any actor.
| Event | event to play |
| bAutoPlay | Start the event automatically. |
| FFMODEventInstance PlayEventAtLocation | ( | UObject | WorldContextObject, |
| UFMODEvent | Event, | ||
| FTransform | Location, | ||
| bool | bAutoPlay ) |
| UFMODAudioComponent PlayEventAttached | ( | UFMODEvent | Event, |
| USceneComponent | AttachToComponent, | ||
| FName | AttachPointName, | ||
| FVector | Location, | ||
| EAttachLocation | LocationType, | ||
| bool | bStopWhenAttachedToDestroyed, | ||
| bool | bAutoPlay, | ||
| bool | bAutoDestroy ) |
Plays an event attached to and following the specified component.
| Event | event to play |
| AttachPointName | Optional named point within the AttachComponent to play the sound at |
| Location | Depending on the value of Location Type this is either a relative offset from the attach component/point or an absolute world position that will be translated to a relative offset |
| LocationType | Specifies whether Location is a relative offset or an absolute world position |
| bStopWhenAttachedToDestroyed | Specifies whether the sound should stop playing when the owner of the attach to component is destroyed. |
| bAutoPlay | Start the event automatically. |
| bAutoDestroy | Automatically destroy the audio component when the sound is stopped. |
| void SetGlobalParameterByName | ( | FName | Name, |
| float32 | Value ) |
| void SetLocale | ( | FString | Locale | ) |
Set the active locale for subsequent bank loads.
| void SetOutputDriverByIndex | ( | int | NewDriverIndex | ) |
Set current output device by its index from GetOutputDrivers.
| void SetOutputDriverByName | ( | FString | NewDriverName | ) |
Set current output device by name or part of the name.
| void UnloadBank | ( | UFMODBank | Bank | ) |
Unloads a bank.
| Bank | bank to unload |
| void UnloadBankSampleData | ( | UFMODBank | Bank | ) |
Unload bank sample data.
| Bank | bank to unload sample data from |
| void UnloadEventSampleData | ( | UObject | WorldContextObject, |
| UFMODEvent | Event ) |
Unload event sample data.
| Event | event to load sample data from. |
| void VCASetVolume | ( | UFMODVCA | Vca, |
| float32 | Volume ) |
Set volume on a VCA.
| Vca | VCA to use |
| Volume | volume |