Thankyou, I didnot understand it correclty the first time.
By the way... How to make sure an entity exists in an if statement? I think this is where my function is crashing:
if(PreviousCar!=NULL)//If there exists a previous car or I am the first
PreviousCar is an entity declared like this:
And before that function is called it is initialized as:
The crash gives me Error E1514 so I think it must be related to that
Error E1514: Invalid pointer or handle
An engine function, like handle or ptr_for_handle, was called with an invalid pointer or handle.
Does anyone know what I am doing wrong?