Post tutorial RSS Killtarget a func_tracktrain without crash

How to fix a very rare crash that happens if you killtarget a func_tracktrain.

Posted by on - Advanced Mapping/Technical

I make a habit of documenting rare errors for which the fixes can't be found online, so here is one that took me a while to figure out.

tram

Normally it is possible to killtarget a func_tracktrain if you want it gone for some reason. If you try to save your game or use a trigger_changelevel and the game crashes, then take a look at the following:

trackchange

When saving the game, it will record the current gamestate including the reference to the tracktrain in the func_trackautochange. But with the train killtargeted, this reference is gone and Half-Life will crash. To fix this, make sure you killtarget the func_trackautochange as well.

Comments
Trempler
Trempler

usefull info, did not know that either!

Reply Good karma Bad karma+1 vote
Post a comment
Sign in or join with:

Only registered members can share their thoughts. So come on! Join the community today (totally free - or sign in with your social account on the right) and join in the conversation.