trigger_teleport: Now looks for the right attributes in its search for a destination. How inspiring.
This commit is contained in:
parent
27b18818f8
commit
a21b9a69ce
1 changed files with 5 additions and 2 deletions
|
@ -15,8 +15,11 @@ class trigger_teleport : CBaseTrigger
|
|||
void trigger_teleport :: touch ( void )
|
||||
{
|
||||
if ( other.health > 0 || other.solid == SOLID_SLIDEBOX ) {
|
||||
entity eTarget = find( world, ::targetname, target );
|
||||
setorigin( other, eTarget.origin );
|
||||
entity eTarget = find(world, CBaseTrigger::m_strTargetName, m_strTarget);
|
||||
|
||||
if (eTarget) {
|
||||
setorigin(other, eTarget.origin + [0,0,16]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue