Actors not working for me.
#1

I have a FS and I want to add some actors, but animations not working. What I can do?
PHP код:
public OnFilterScriptInit()
{
new 
actor;
actorCreateActor(183316.1090,-133.5941,999.6016,95.2985);
ApplyActorAnimation(actor,"STRIP""strip_E"4.10000,1);
return 
1;

Reply
#2

https://sampwiki.blast.hk/wiki/OnActorStreamIn
Reply
#3

Quote:
Originally Posted by Vince
Посмотреть сообщение
Sorry, but I don't know what to do with this. This is my first time with actors :/
Reply
#4

PHP код:
public OnActorStreamIn(actoridforplayerid)
{
    
ApplyActorAnimation(actorid"STRIP""strip_E"4.10000,1); // Apply the animation when the player see an actor
    
return 1;

Reply
#5

Hmm, I have this, what is wrong?

PHP код:
public OnFilterScriptInit()
{
new 
actor;
actor CreateActor(183316.1090,-133.5941,999.6016,95.2985);
return 
1;
}
public 
OnActorStreamIn(actoridforplayerid

    
ApplyActorAnimation(actor"STRIP""strip_E"4.10000,1); // Apply the animation when the player see an actor 
    
return 1

Reply
#6

Your "actor" variable is only accessible inside OnFilterScriptInit, you need to put it in global scope, i.e outside of any function. Just the definition, not the actor creation itself
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)