Teleporting entities: Difference between revisions
From The DarkMod Wiki
Jump to navigationJump to search
add |
update |
||
Line 1: | Line 1: | ||
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. | 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 | To make this even easier, a new '''atdm:telepert''' entity has been added. | ||
== Example == | |||
* Create the atdm:teleport entity '''{{RMB}} -> 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: {{key|CTRL}} + {{key|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: | Here is an example: |
Revision as of 12:39, 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 an example: