Spectating a pickup.
#1

If it's possible to spectate a pickup, can someone show me how to do it?
Reply
#2

Save the pickup pos inside an enum or such and you can SetPlayerCameraLookAt there. Or add an object and attach camera to the object.
Reply
#3

i tries making something like this but failed. i need someone to show me a example.
Reply
#4

anyone?
Reply
#5

Is the pickup always on the same position?
Reply
#6

no, they dont be in the same position all the time as i have a command to create a pickups in front of me.
Reply
#7

Okay and you want Spectate one pickup?
Or random?
Reply
#8

only one
Reply
#9

Post your create command.
Reply
#10

pickup
Quote:

CMDickup(playerid,params[])
{
if(pInfo[playerid][pLevel] >= 6)
{
new type,id, Float:X, Float:Y, Float:Z;
if(sscanf(params, "ii",type,id)) return SendClientMessage(playerid,yellow,"Usage: /Pickup <Type> <Pickup ID>");
CommandToAdmins(playerid,"pickup");
GetPlayerPos(playerid, X, Y, Z);
switch(type)
{
return SendClientMessage(playerid,red,"Invalid pickup type!");
}
FP = CreateDynamicPickup(id, type, X, Y, Z);
}
else return ShowMessage(playerid, red, 1);
}

Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)