Re: portal editor teleport and vectors
couple of things i can think of..
1st, the x/y/z position i think is in relation to the whole map, not just the areas that are in bounds, so it may be trying to teleport a player to 30,10 x/y coordinates but that's out of the play area.
2nd, RandomReal allows for quite a few decimal places so it MAY be possible its teleporting beyond its limit, like it may allow for 3 decimal places but you spin up a random number like 1.665543, probably a low chance of that being the issue though
3rd, wouldn't happen 100% of the time but there's a chance of spinning a number under 1, this would still put the players collision box partially out of bounds.
I'd probably put my money on 1, if you display your co-ordinates on screen a lot of maps play areas start at about 50,50, so i'd set that as your lower limit for random real, it would also fix problem 3 if it ever occurs.
Also the create vector function uses x,y,z but it looks like your using your z variable in the y co-ordinate, wouldn't hurt functionally but could cause you issues if you get them confused
Lastly the ongoing event where your loadouts are, ongoing events need to have a condition and that condition needs to be toggled off at some point to be toggled on again. Another words if it happens at all currently it will only happen once.