samp-incognito / samp-streamer-plugin

Streamer Plugin for SA-MP (San Andreas Multiplayer)
Apache License 2.0
233 stars 92 forks source link

New actor function #183

Closed Romz24 closed 7 years ago

Romz24 commented 7 years ago

Hello! Now when there is a streamer on the actors, I believe that this function is needed.

AttachDynamicAreaToActor AttachDynamicObjectToActor DestroyAllDynamicActor CountDynamicActor

IstuntmanI commented 7 years ago

There's no AttachPlayerObjectToActor, so AttachDynamicObjectToActor isn't possible without a special plugin (like YSF). (streamed objects are created internally with CreatePlayerObject) All DestroyAll and Count functions are deprecated, use Streamer_DestroyAllItems and Streamer_CountItems.

Yes, AttachDynamicAreaToActor could be made, but an actor can't move independently. You could change area's position when you change actor's position. I'm not sure if the position of an actor changes (GetActorPos) when a moving animation is applied to him.

ghost commented 7 years ago

"There's no AttachPlayerObjectToActor, so AttachDynamicObjectToActor isn't possible without a special plugin (like YSF)." - its impossible, even with ysf :D actors are actors, not players. There are no function in client which handles attaching objects to actors.

AbyssMorgan commented 7 years ago

Actor not moving... Use CreateDynamicObject, CreateDynamicArea XD

DestroyAllDynamicActors();
CountDynamicActors();

and more here: http://forum.sa-mp.com/showthread.php?t=590918

samp-incognito commented 7 years ago

I agree. AttachDynamicObjectToActor isn't possible and the others aren't needed.