ok, heres what I'm doing: I have a model spawned and I have a for loop that will keep setting it to the player's location every .05 seconds (minimun time allowed by the engine)... And it works fine, but if you move too fast or spin too fast, it will be like a second behind the player, causing it to go through the player. The language is called GSC ( Call of Duty's personal language), but it is alot like other scripting languages. Heres my script and I want to know if anyone can think of any ways to do it. My friend has done it and figured it out while he was scripting in Javascript (i think). Then he converted it to GSC. But he wont tell me how he did it so... I would like to figure out it.
for(;;)
{
model.origin = self.origin + (0,0,50);
model.angles = self.angles;
wait(.05);
}
self is the player, and model is my model that will lag into the player when moving fast (aka sprinting). .origin and .angles are already defined via the engine. This is a picture of what the model looks like on a playermodel (this is not the player because I did not have third person available when I built the mod).
I hope someone could help think of a way to stop it from entering the player