flag not respawning correctly

Discussion in 'Mapping Questions & Discussion' started by Yabayabayaba, Sep 5, 2017.

  1. Yabayabayaba

    Yabayabayaba L5: Dapper Member

    Messages:
    240
    Positive Ratings:
    66
    i am having a consistent problem with a flag. it works fine, but as soon as I parent it to a func_tracktrain it does not respawn correctly. When it respawns it spawns off to the side, each time the flag returns it spawns off to the side from where it should be. the entities are a copy from the flag on train prefab, where this same thing works. Any ideas?
     
  2. Egan

    aa Egan

    Messages:
    1,302
    Positive Ratings:
    1,478
    I'm not familiar with how the prefab works, but it could be a slight delay in resetting the parent of the flag that causes it to move for a small time after it spawns which gives it the offset.

    A potential easy fix would be to just use a point_teleport to teleport the flag entity back to a particular position: https://developer.valvesoftware.com/wiki/Point_teleport
     
  3. Yabayabayaba

    Yabayabayaba L5: Dapper Member

    Messages:
    240
    Positive Ratings:
    66
    Good idea, but it spawns next to the train (train travels down in hammer, flag spawns to the left of train floating through the air). Unfortunaltly a point_teleport won't work, it will only teleport a dropped flag, and when the flag returns it spawns in the wrong spot
     
  4. Yabayabayaba

    Yabayabayaba L5: Dapper Member

    Messages:
    240
    Positive Ratings:
    66
    recopied train from prefab, and remodified to fit in map and now it works. this issue will likely show up again though, so if anyone has any ideas