Script for bad frame warning

Posted By: Anonymous

Script for bad frame warning - 02/11/09 23:27

The Set Up
Hi, I am working with other people on a project. When the ent_animate refers to a frame set name that doesn't exist in the mode, i.g. no frames named walk, the model freezes in the last played frame. The people I'm working with are slow getting that fact after numerous repeat answers to the question "Malice way is the model stuck?". But I would like to write a function that checks if the frame name set exist or NOT and if NOT disply a text warning message on screen while ent_animate is using the bad frame set.

You don't have to write me a function. Please Don't! Just tell me what instructions are need for what part. I'll look them up in the manual and write my own code. I HATE when people ask others to do there work for them. That said I could read through the manual and figure out the instruction but I think asking you guys would be faster. So if you already know the answers and don't mind this request for help, please reply.

The End: Thans for reading and/or replying to this post.

Malice
Texas USA
Posted By: heinekenbottle

Re: Script for bad frame warning - 02/12/09 15:12

if the frame does not exist, ent_animate returns 0.

something like if(ent_animate("walk,"AnimPercent,ANIM_ADD) == 0) { doStuff(); . . .
Posted By: Anonymous

Re: Script for bad frame warning - 02/12/09 21:26

Thanks heinekenbottle. Wow! I expected more, I should have just read the manual. Thanks for taking the time to reply.

Malice
Texas USA
© 2024 lite-C Forums