06.05.2015, 18:06
Queria a Include CreateActor
PHP код:
ActorCJ = CreateActor(0, 0.0, 0.0, 3.0, 0.0);
ActorCJ = CreateActor(0, 0.0, 0.0, 3.0, 0.0);
/* SA-MP Actor Functions
*
* © Copyright 2015, SA-MP Team
*
*/
#if defined _actor_included
#endinput
#endif
#define _actor_included
#pragma library actors
native CreateActor(modelid, Float:X, Float:Y, Float:Z, Float:Rotation);
native DestroyActor(actorid);
native IsActorStreamedIn(actorid, forplayerid);
native SetActorVirtualWorld(actorid, vworld);
native GetActorVirtualWorld(actorid);
native ApplyActorAnimation(actorid, animlib[], animname[], Float:fDelta, loop, lockx, locky, freeze, time);
native ClearActorAnimations(actorid);
native SetActorPos(actorid, Float:X, Float:Y, Float:Z);
native GetActorPos(actorid, &Float:X, &Float:Y, &Float:Z);
native SetActorFacingAngle(actorid, Float:ang);
native GetActorFacingAngle(actorid, &Float:ang);
native SetActorHealth(actorid, Float:health);
native GetActorHealth(actorid, &Float:health);
native SetActorInvulnerable(actorid, invulnerable = true);
native IsActorInvulnerable(actorid);
#include <a_actor>
Desculpe a noobice mas estou vendo esta include e... Em que ela consiste? Quais a formas de uso? Quais as vantagens de utilizar isso e o mais importante pra que serve '-'
|
O funcionamento dos actors sгo semelhante aos de NPCs. Sу que nгo ocupam slot de players, trabalhando com um slot reservado a Actors. Alйm disso, nгo precisam ser gravados como os NPCs, vocк executa a animaзгo ao actor, etc.
Eles funcionam de forma semelhante aos NPCs, sу que nгo sгo NPCs.. |