SA-MP Forums Archive
Actor is not showing? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Actor is not showing? (/showthread.php?tid=572705)



Actor is not showing? - J0sh... - 01.05.2015

pawn Code:
new strip;

public OnGameModeInit()
{
   strip = CreateActor(257, -2671.7690, 1410.3406, 907.5703, 271.7646);
   return 1;
}
Doesn't show up at the Jizzy's interior.


Re: Actor is not showing? - AIped - 01.05.2015

But it does show anywhere else ? maybe its stuck in the interior somehow.
I remember adding an npc in jizzys once..on the stage as a stripper but somehow that didnt work out either.


Re: Actor is not showing? - J0sh... - 01.05.2015

Quote:
Originally Posted by AIped
View Post
But it does show anywhere else ? maybe its stuck in the interior somehow.
I remember adding an npc in jizzys once..on the stage as a stripper but somehow that didnt work out either.
No I coudn't see it.


Re: Actor is not showing? - dominik523 - 01.05.2015

Try to set it's virtual world to player's vw.


Re: Actor is not showing? - J0sh... - 01.05.2015

[09:04:44] -2671.769042, 1410.340576, 907.570312, 0

Pos and VW of actor.
Player is vw 0 also.


Re: Actor is not showing? - AzaMx - 01.05.2015

Try to put it somewhere outside, example.. outside lspd.. so we can see if it work or not.


Re: Actor is not showing? - J0sh... - 01.05.2015

Hmm, I'll try that.

EDIT:Yes, the actor can been seen now. Doesn't work in Jizzy's I suppose, odd.


Re: Actor is not showing? - AzaMx - 01.05.2015

Quote:
Originally Posted by JamesCaptGeneral
View Post
Hmm, I'll try that.

EDIT:Yes, the actor can been seen now. Doesn't work in Jizzy's I suppose, odd.
Yes and maybe... But i think it was because the Actor virtual world were different with Jizzy's interior


Re: Actor is not showing? - J0sh... - 01.05.2015

Quote:
Originally Posted by JamesCaptGeneral
View Post
[09:04:44] -2671.769042, 1410.340576, 907.570312, 0

Pos and VW of actor.
Player is vw 0 also.
4char


Re: Actor is not showing? - AzaMx - 01.05.2015

I think you should look here.. https://sampwiki.blast.hk/wiki/SetActorVirtualWorld


Re: Actor is not showing? - Dragony92 - 01.05.2015

It's working fine for me...
http://www.dodaj.rs/f/1j/Fk/2Qb0jbsZ/sa-mp-118.png

pawn Код:
CMD:createactor(playerid, params[])
{
    new modelid;
    if(sscanf(params, "d", modelid)) return SendClientMessage(playerid, -1, "Usage: /createactor [ModelID]");
    new Float:ang, Float:x, Float:y, Float:z;
    GetPlayerFacingAngle(playerid, ang);
    GetPlayerPos(playerid, x, y, z);
        new id = CreateActor(modelid, x, y, z, ang);
    new string[24];
    format(string, sizeof(string), "Actor ID: %d created.", id);
    SendClientMessage(playerid, -1, string);
    return 1;
}



Re: Actor is not showing? - J0sh... - 01.05.2015

Quote:
Originally Posted by Dragony92
Посмотреть сообщение
It's working fine for me...
http://www.dodaj.rs/f/1j/Fk/2Qb0jbsZ/sa-mp-118.png

pawn Код:
CMD:createactor(playerid, params[])
{
    new modelid;
    if(sscanf(params, "d", modelid)) return SendClientMessage(playerid, -1, "Usage: /createactor [ModelID]");
    new Float:ang, Float:x, Float:y, Float:z;
    GetPlayerFacingAngle(playerid, ang);
    GetPlayerPos(playerid, x, y, z);
        new id = CreateActor(modelid, x, y, z, ang);
    new string[24];
    format(string, sizeof(string), "Actor ID: %d created.", id);
    SendClientMessage(playerid, -1, string);
    return 1;
}
If you read. I said they do work, but I want them to be in Jizzy's they work in the SA world but not Jizzy's.

EDIT: Didn't see the picture.