First, try that: var TraceCoords[3]; I use Lite-C so I actually don't remember how C-Script handles vectors.

Then, maybe the templates don't use "player"? Try to search in the template script s for "plBipedPlayer" or sth like that.