AdvancedLaserController
Updated 2 years agoAdvancedLaserController
Description
This class serves to enable/disable multiple items in a list, specifically designed for use with Lasers and Flashlights. It is set up to work with CityRobo's pressurepad system. It requires that all lists contain the same number of indexes, as this system was designed before I could make serialized classes with Meatkit.
Parameters
AttachmentInterface
(FVRInteractiveObject): The attachment interface we're watchingDisplayRotPoint
(Transform): The transform used to rotate the text based on the attachment orientation.Canvas
(GameObject): The text canvas used to display optionsListOfEmitterTexts
(List<Text>): The list of text boxes to useListOfEmitterNames
(List<string>): The list of text prefixes to each option, eg "IR: "ListOfEmitterObjects
(List<GameObject>): The list of primary emitter objects, such as the lasers or flashlights themselvesListOfEmittersTandemItems
(List<GameObject>): The list of tandem items to be enabled with the primary item, eg IR designator, Laser accent lightListOfEmitterTypes
(List<Types>): List of the functions each mode does, used by City's touchpad scriptEmitterMode
(Setting[]): Stores the current state of each emitter, off by default.TextFrame
(GameObject): The text frame to be moved between the active optionFrameLArrow
(GameObject): The left arrow of the text frameFrameRArrow
(GameObject): The right arrow of the text frameEmitterOnAudio
(AudioEvent): The audio played on option activationEmitterOffAudio
(AudioEvent): The audio played on option deactivation
Example usage
Usage of this script can be found on all ModernWarfighter Lights and Lasers.