Tiberian Technologies Scripts Reference Revision: 9000
Loading...
Searching...
No Matches
List of all members
dp88_Create_Object_Cinematic Class Reference

Create Object With Cinematic. More...

#include <dp88_misc.h>

Detailed Description

Author
Daniel Paul (danpa.nosp@m.ul88.nosp@m.@yaho.nosp@m.o.co.nosp@m..uk)

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

Parameters
CinematicThe cinematic script to be played when the object has been created
Trigger_CustomID of the custom message to listen for or 0 to trigger on creation instead
OffsetThe offset from the location of the object this script is attached to to create the cinematic at
Note
Your cinematic must send the custom message 43000 to the object at an appropriate time to allow it to start taking damage. If you do not send this custom the object will be permanently immune from all damage.