I'm using the Biped player in my game, I am inserting the following code at around 95 in the main game script. Inside of the main game loop. When I press enter I get an "Empty Pointer in Main" Error. I have been able to find very little about this error, what can I do to improve the code so that it works?
if (key_enter == 1)
{
ent_create("toto.mdl", vector(my.x - 50, my.y, my.z), destroy_object);
}
wait(1);
destroy_object is an action in another .wdl file.
I read it has something to do with calling the "my" function inside of another one or something, I really don't know what to do, any help will be greatly appreciated!