Teleporting entities: Difference between revisions
From The DarkMod Wiki
Jump to navigationJump to search
update |
m minor format |
||
Line 12: | Line 12: | ||
Note: Triggers have a lot of useful spawnargs that can insert delays, make it trigger only once etc. | Note: Triggers have a lot of useful spawnargs that can insert delays, make it trigger only once etc. | ||
Here is | |||
---- | |||
Here is a screenshot: | |||
[[Image:Trigger teleport.jpg]] | [[Image:Trigger teleport.jpg]] | ||
{{editing}} | {{editing}} |
Revision as of 12:43, 22 July 2009
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 -> 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 a screenshot: