...
In this example, I want to put safety equipment (hat, goggles , vest) on the learner at the start of the scene. I also need to spawn assets so what I will do is fade the scene to black, spawn the assets and don the glasses, then fade the scene back in again. Here are the steps:
Open the appropriate script and frame.
Drag and drop the Object (safety hat) and Target (head) into the frame where you would normally organize scene objects. Repeat for any additional Objects:
...
I warned the learner that the hat would be equipped by using a Screen Message in a new frame:
...
Add a Close Event under the Screen Message. This will trigger the next resource when the Screen Message is closed.
Add the Equip or Unequip resource by dragging it into the Resources pane of the frame and configuring:
Equippable Object = Safety Hat
Action = Equip
Target = Head
Repeat for all Objects:
...
...
:
Create a frame with an appropriate message:
...
Add a frame to Fade Out the scene:
...
Optional but necessary for this script - add a frame for the Spawn Assets
Add a frame for the Equip or Unequip resource and additionally whether it’s in this frame or another the Equippable Object and Target need to be added:
...
In the next frame, fade the scene back in:
...
In the last frame you can optionally create a custom event for the Assets Spawned. We cannot use an End Script resource in this script as we spawned assets.
Here is what the frames would look like for the scripting above:
...
Here is what it would look like in the headset. Note that you will see a slight difference in view after safety goggles are donned:
...
...
To view this video in fullscreen on Vimeo, click here.