[BUG] Deattaching camera from bot
#1

When we attach camera to object, attached to vehicle which npc driver, camera deattached, when bot stream out. Coords of deattached camera will be place of stream out. And when bot stream in, camera attaching to object again.
Reply
#2

Comfirmed.

The attached object position should be updated, when the NPC stream in for you.
Reply
#3

It is. Guy, who says abiut this bug want, that camera would be attaching everytime, but I think it is impossible.
Reply
#4

Quote:
Originally Posted by OKStyle
Посмотреть сообщение
It is. Guy, who says abiut this bug want, that camera would be attaching everytime, but I think it is impossible.
What?

Anyway, confirmed.
Reply
#5

Quote:
Originally Posted by Biesmen
Посмотреть сообщение
What?
It's my trouble. My steps:
1. I attach object to vehicle;
2. Putted NPC in vehicle;
3. Attach camera to object in step 1;
4. When the NPC is far away from player, then camera stop and no update; >;(
5. When a player catches up the NPC, then camera again update.
Hope clearly described
Reply
#6

Could you post a video of what happens?
Reply
#7

Put the player in to spectating mode. This means it streams based on where their camera is, not the player's character.

pawn Код:
// Create object
// Attach to vehicle

TogglePlayerSpectating(playerid, 1);

// Attach their camera to the object
Reply
#8

Quote:
Originally Posted by Shadow_
Посмотреть сообщение
Could you post a video of what happens?
It's been wery hard for me
You may use my code to see trouble:
in your NPC filterscript:
PHP код:
new Cam;
Cam CreateObject(193000.00.00.00.00.00.0700);//invisible object
AttachObjectToVehicle(CamYourNPCVehicle,-2.0,0.0,-2.0,0.0,0.0,0.0);//in my case it's Maveric 
In public OnPlayerCommandText:
PHP код:
if (strcmp("/SpyCam"cmdtexttrue) == 0)
{
AttachCameraToObject(playeridCam);

Now if you go away from the NPC and enter /SpyCam, camera spawned in 0,0,0. If you teleport to NPC and enter /SpyCam, camera spawned normally with vehicle.
Reply
#9

Quote:
Originally Posted by MP2
Посмотреть сообщение
Put the player in to spectating mode. This means it streams based on where their camera is, not the player's character.

pawn Код:
// Create object
// Attach to vehicle

TogglePlayerSpectating(playerid, 1);

// Attach their camera to the object
Thanks! Works well
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)