Teleporting entities

From The DarkMod Wiki
Revision as of 11:19, 22 July 2009 by Tels (talk | contribs) (add)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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 global script function called "teleport_targets" already exists in def/tdm_trigger.def. You can use it as the "call" spawnarg in any trigger entity like so:

Here is an example:

Trigger teleport.jpg