trigger_teleport: Now looks for the right attributes in its search for a destination. How inspiring.

This commit is contained in:
Marco Cawthorne 2019-01-16 05:19:00 +01:00
parent 27b18818f8
commit a21b9a69ce

View file

@ -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]);
}
}
}