Quote: "Nice. But I'm a little confused. Can you please explain some of the
"name" functions or techniques?"
init_name(e,name)
allows you to access the 'name' from the entity's properties panel in the editor via script - in the above script i store it as _name[e]
Quote: "-- so the name "tonumber(name)" calls the name of the object and
makes it a number? but well, when is it best used, and how?"
yes, i need the name to be a number as i want to store the entity number to get some info about it
Quote: "In other words, what if you didn't use the name part in that script, would it still work then? "
depends, you would need to tell the script which entity or position to end the ray cast at
Quote: "And in the video are you raycasting from the player to the AI soldier?? If so, then I understand."
yep, it would make more sense to do it in reverse if you were trying to simulate the AI firing etc but my example is merely to show contact reporting works fine
Quote: "I thought IntersectAll just give a 0 or 1...?"
no, the documentation is wrong, it returns 0 or the AI number (i.e. 7000) of the object hit