Teleporting entities

From The DarkMod Wiki
Revision as of 12:39, 22 July 2009 by Tels (talk | contribs) (update)
Jump to navigationJump to search

Often the mapper wants to teleport an entity to a specific place and orientation. In Doom3, this is very easy, you need just to set the origin and angles of the object inside a script and it will appear where it should.

To make this even easier, a new atdm:telepert entity has been added.

Example

  • Create the atdm:teleport entity Click the right mouse button -> Create Entity -> darkmod -> Trigger -> atdm:teleport
  • Move it to the position and orient it the way that the teleported entity/entities should appear
  • Link the atdm:teleport to any entities you want to be teleported (Default: CTRL + K)
  • Create a trigger and link it to the atdm:teleport. Once the trigger activates atdm:teleport, the teleport will happen.

Note: Triggers have a lot of useful spawnargs that can insert delays, make it trigger only once etc.

Here is an example:

Trigger teleport.jpg