Skip to reading
3D Models & Video in GUIs

27. Run the controls through action lists

Edition 0.86.4.1 HF1

0.86.4.1 Hotfix 1 edition. Earlier lessons and screenshots retain their original version context; revised references and supplements describe the newer behavior.

Download PDFView illustrations

The model commands already exist as shared actions. Embedded video commands in this guide are small script records. Both can take part in the normal GUI event and action-list workflow.

Source table from 27. Run the controls through action lists, page 37
TaskHow to arrange it
Center an inspection modelAdd Center GUI Model directly to the Button event or action list.
Change its embedded animationAdd Play GUI Model Animation with its clip, Loop and Speed.
Start a GUI videoRun the prepared Play script, targeting the embedded element.
Close a video screenRun a close wrapper that stops the player before hiding the GUI.
Use a visual graphConnect the intended entry to the shared model action, or use the shared script-running node for the prepared video wrapper.

Figure 21. The Video Play Button runs a script record. Its target is the wrapper script, which then finds the embedded player.

Keep the wrapper script IDs different from the video asset ID. A Button that runs play_video is choosing code; that code targets briefing_video, which loads workshop_clip.

The shared Play Video action can be useful elsewhere in your game, but using it here does not mean it is controlling the Video element you placed in this GUI.

Page 37 of 45Permalink
Go to page