Rocket smoke poof trail.
Im trying to make a plugin that adds a trail of individual animated smoke poofs. But here's the problem, find_ent_by_class only returns 1 entity match per execution and fm_find_ent_by_class doesn't work worth a damn. I also can't multi-task origins in the same code execution. Everything has to be able to handle multiple indexes at the same time to work the way I want it. But as it is now, it can only handle 1 rocket at a time.
For loop doesn't do any good. It just loops over the same entity if there's only 1 causing redundant sprite overlapping. PHP Code:
PHP Code:
|
Re: Rocket smoke poof trail.
And, Why didn't define the first dimension like MAX_PLAYERS?
PHP Code:
|
Re: Rocket smoke poof trail.
Fails to properly store coordinates. Only returns 0.
I don't think I'm clearing understanding what I'm supposed to do. PHP Code:
|
Re: Rocket smoke poof trail.
PHP Code:
PHP Code:
Wait... Why do you called the directive MAX_PLAYERS like a player index? You aren't understanding how it works... I'll give you an example. PHP Code:
PHP Code:
Question: Will you use the origin variables for other reasons?, Else, you haven't to create it like a global variable and with a dimension more than the origin cells. PHP Code:
|
Re: Rocket smoke poof trail.
Ok, I did exactly as you instructed in your full example but still was only adding the trail 1 rocket at a time. How do I use find ent by class to return a fill list of matches instead if just 1 entity per execution? After all the entity index number if the entity matches should be what I need for the array.
Something like? PHP Code:
|
| All times are GMT -4. The time now is 00:20. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.