post more of the code. it looks like that %rayvector is the direction the raycast is casted in
It is, it's taking the vector direction and scaling it into a 3f position. Pretty sure anyway
I've uploaded all the functions so far
here (forewarning: it's messy)
also 500 is a lot lol that's 1000 brick studs of distance. may want to keep it down a bit
first point: i don't see how there would be a laser without you deleting it unless you cleared projectiles or static shapes or something, but i guess its fine.
Good point, I turned it down to about 32 studs
What I was doing was when the laser gets tripped, it spawns an explosion at the static shape and then deletes it. But that left the laser just kinda hanging around and I didn't know how I would be able to delete it without constantly checking to see if it's source object is still there. The laser itself is a static shape also
second point: you can store a list of staticshape objectID's and a counter; if the counter goes above x then the next placed mine would delete/explode the first mine in the list, and append the new mine to the end of the list. i guess it could get problematic if your string ends up being over 5000 characters long or something (whatever's the limit)
eg $Server::Tripmines = "10001 10002 10003"; $Server::TripmineCount = 3;
I haven't really experimented with lists yet, I'll give it a whirl