Sorry about the pointer error, I unknowingly assumed that the action was already assigned to the entity in WED.

To fix that var behind_v[3] = {0,0,0} error you should be able to use: var behind_v = vector(0, 0, 0); with the same results, I think.