I am trying to write a simple script that will connect a sprite to a model using the ent_vertex command. I can't get it to work. The script I made dosen't produce errors but the sprite dosen't even appear on the screen or connect to the model. Here's my script
SYNONYM hitpoint {TYPE ENTITY; }
function hitpoint_init(){
If (me == null)
{me == hitpoint;}
my.pos = 304;
}
function melee_attack(){
While (player.frame == 10)
{ent_vertex(player.pos,304);//vertex # 304//
create(<hitpoint.pcx>,304,hitpoint_init);
break;}
}
Does anyone know how to modify this so It will work? If not can anyone give me an example of how to use ent_vertex.(other than the manuals example). Thanks I would be very grateful.
[This message has been edited by r598 (edited 14 May 2001).]