portal2
portal2 copied to clipboard
VScript freezing game when leaving map
class Class {
vector1 = null;
vector2 = null;
static instances = [];
constructor() {
this.vector1 = Vector(0, 0, 0);
this.vector2 = Vector(0, 0, 0);
}
}
Class.instances.push(Class());
Class.instances.push(Class());
Running this script and leaving the map will freeze the game.