[Include] actor_plus » Useful functions/callbacks for actors
#22

@Pottus ; That's a great idea (again). I will think about it.
@Giacky ;
Hey, thanks for giving a lot of suggestions but I have few questions:
Quote:
Originally Posted by Giacky
Посмотреть сообщение
Код:
ToggleActorAnimationLoop(actorid, bool:status);
reapply current animation with new loop status. good util.
Can you explain further your idea about this?


Quote:
Originally Posted by Giacky
Посмотреть сообщение
Код:
SetActorArea(actorid, range=ACTOR_MAX_TRIGGER_AREA);
how it works internally : maybe creating a dynamic area linked to actor. type cylindric, max range 8.
no trigger zone when actor created.
if range 0.0, no trigger zone (destroy area if exists).

Код:
GetActorAreaState(actorid, &bool:state);
OnPlayerEnterActorArea(playerid, actorid);
OnPlayerExitActorArea(playerid, actorid);
That one too, I don't understand at all what do you mean.


Quote:
Originally Posted by Giacky
Посмотреть сообщение
PlayActorSoundForPlayer(actorid, soundid, duration=0.0);[/CODE]
sound played at actor pos.
if playerpos > range of 20, no sound played.
duration: duration before stopsound (some soundid are looped)
What I actually made is a sound can be played near (depends of codes) an actor's positions.


Quote:
Originally Posted by Giacky
Посмотреть сообщение
Код:
ApplyActorAnimation 	:
- Passing an invalid animation library in ApplyAnimation causes a client crash for streamed in players. 	
FIX: Block ApplyActorAnimation when an invalid library is passed.
-First time a library is used, it does nothing. 	
FIX:Apply animations twice when first using a library.
If you did fixe them yourself, check if samp-fixes is not defined to be sure to not apply same fixes twice.
- I will add an option to fix this bug/avoiding crash when invalid animation library is provided.
- That's not an actor related issue. Before stream-in an actor, you need to apply the animation on the player. This issue is exactly the same as ApplyAnimation.
Reply


Messages In This Thread
actor_plus » Useful functions/callbacks for actors - by Dayrion - 25.01.2018, 14:19
Re: actor_plus » Useful functions/callbacks for actors - by rfr - 25.01.2018, 14:22
Re: actor_plus » Useful functions/callbacks for actors - by Dayrion - 25.01.2018, 14:26
Re: actor_plus » Useful functions/callbacks for actors - by GuyYahood1 - 25.01.2018, 16:41
Re: actor_plus » Useful functions/callbacks for actors - by chneubeul - 25.01.2018, 20:05
Re: actor_plus » Useful functions/callbacks for actors - by Dayrion - 25.01.2018, 22:10
Re: actor_plus » Useful functions/callbacks for actors - by ThePhenix - 26.01.2018, 16:13
Re: actor_plus » Useful functions/callbacks for actors - by Dayrion - 26.01.2018, 22:00
Re: actor_plus » Useful functions/callbacks for actors - by Spmn - 26.01.2018, 22:29
Re: actor_plus » Useful functions/callbacks for actors - by Pottus - 26.01.2018, 23:58
Re: actor_plus » Useful functions/callbacks for actors - by Dayrion - 28.01.2018, 12:16
Re: actor_plus » Useful functions/callbacks for actors - by Dayrion - 31.01.2018, 12:40
Re: actor_plus » Useful functions/callbacks for actors - by Pottus - 31.01.2018, 21:51
Re: actor_plus » Useful functions/callbacks for actors - by Dayrion - 01.02.2018, 21:07
Re: actor_plus » Useful functions/callbacks for actors - by Pottus - 02.02.2018, 00:24
Re: actor_plus » Useful functions/callbacks for actors - by Dayrion - 02.02.2018, 00:33
Re: actor_plus » Useful functions/callbacks for actors - by Pottus - 02.02.2018, 00:47
Re: actor_plus » Useful functions/callbacks for actors - by Dayrion - 02.02.2018, 18:17
Re: actor_plus » Useful functions/callbacks for actors - by Dayrion - 06.02.2018, 15:35
Re: actor_plus » Useful functions/callbacks for actors - by Pottus - 06.02.2018, 22:58
Re: actor_plus » Useful functions/callbacks for actors - by Giacky - 11.02.2018, 20:20
Re: actor_plus » Useful functions/callbacks for actors - by Dayrion - 13.02.2018, 03:38
Re: actor_plus » Useful functions/callbacks for actors - by Dayrion - 15.02.2018, 23:41
Re: actor_plus » Useful functions/callbacks for actors - by CantBeJohn - 28.03.2018, 14:04
Re: actor_plus » Useful functions/callbacks for actors - by Dice_ - 29.04.2018, 02:31
Re: actor_plus » Useful functions/callbacks for actors - by Dayrion - 28.06.2018, 01:29
Re: actor_plus » Useful functions/callbacks for actors - by Alteh - 19.08.2018, 15:39
Re: actor_plus » Useful functions/callbacks for actors - by BiosMarcel - 19.08.2018, 15:44
Re: actor_plus » Useful functions/callbacks for actors - by Alteh - 19.08.2018, 15:56
Re: actor_plus » Useful functions/callbacks for actors - by CantBeJohn - 30.08.2018, 04:54
Re: actor_plus » Useful functions/callbacks for actors - by Dayrion - 30.08.2018, 17:54
Re: actor_plus » Useful functions/callbacks for actors - by Mark009 - 02.10.2018, 23:27
Re: actor_plus » Useful functions/callbacks for actors - by Dayrion - 03.10.2018, 19:25
Re: actor_plus » Useful functions/callbacks for actors - by CantBeJohn - 06.11.2018, 03:08

Forum Jump:


Users browsing this thread: 7 Guest(s)