|
Tiberian Technologies Scripts Reference Revision: 9000
|
Create Object With Cinematic. More...
#include <dp88_misc.h>
Based on SH_CinematicVehicleFactoryBypass this script spawns an object and then attaches it to a cinematic. This could be used to spawn vehicles and have them dropped off via a cinematic script for example. The benefit of these scripts over spawning objects directly in cinematics is improved engine performance since cinematic spawned objects incur more physics engine checks than necessary
This script can either trigger on creation or on a custom trigger. When using a custom trigger it can be triggered multiple times if necessary.
The object created will be attached to the cinematic in slot 0 whilst the "owner" will be added in slot 1. The definition of the owner is either an object ID specified in the parameter of the triggering custom or, if this is 0 or not a valid game object, the sender of the custom, which may be the object this script is attached to.
\preset Preset The preset of the object to be created
| Cinematic | The cinematic script to be played when the object has been created |
| Trigger_Custom | ID of the custom message to listen for or 0 to trigger on creation instead |
| Offset | The offset from the location of the object this script is attached to to create the cinematic at |