Spawning paths.

Untouch

L4: Comfortable Member
Jan 25, 2010
187
48
Alright, I want to be able to spawn random paths, I have everything together, it should be working.

It wasn't though and I found out why.
Instead of adding in an entity to teleport to a path_track, you need to put in a parameter.

Entity updates the targetnames if they are different, parameters do not.

Is there anything I can do about this?
I
 
Mar 23, 2010
1,872
1,696
wouldn't blocking off a path with a locked door and then unlocking said door do the trick? or is it something different, like paths changing into the same spot?
 

Untouch

L4: Comfortable Member
Jan 25, 2010
187
48
No, i'm thinking about spawning objects anywhere in the map that have 4 possible random spots.
The random part works fine, but I can't get the train to jump to the track.
 

Untouch

L4: Comfortable Member
Jan 25, 2010
187
48
Alright.

Theres a train and 4 possbile tracks.

This train and tracks can be spawned anywhere with the template spawner.
When the track spawns it should jump to one of the tracks.

but due to the fact that TeleportToPathTrack uses parameters, the entity name doesn't update so the train always jumps to the first track ever spawned (which has been deleted by then)

I want to know if there is any way to tell a train to jump to a track without teleporttopathtrack.
 
Last edited:

A Boojum Snark

Toraipoddodezain Mazahabado
aa
Nov 2, 2007
4,775
7,670
If the train setup only ever exists in one instance, disabling name fixup on the template would work. Otherwise, no, I don't think there is another way to teleport trains to a specific path.