local player pos -> create pickup with local -> player pos changed

Started by rww, Dec 30, 2015, 12:36 AM

Previous topic - Next topic

rww

Why my pos was changed after create pickup with local player pos?

else if (c == "test")
{
local pos = p.Pos;
CreatePickup(335,1,0,Vector(pos.x += 1.5,pos.y += 1.5,pos.z),255,true);
}

Any way to fix it? VC-MP bug?

https://youtu.be/JdU228vNwWM
Join to Irrelevant Club Discord: https://discord.gg/MsPPZ5uV4X

MatheuS

else if (c == "test")
{
 local pos = p.Pos;
 CreatePickup(335,1,0,Vector(pos.x+1.5,pos.y+1.5,pos.z),255,true);
}

try it :D
if( !sucess ) tryAgain();
Thanks to the VCMP community. It was the happiest period of my life.

Xmair


Credits to Boystang!

VU Full Member | VCDC 6 Coordinator & Scripter | EG A/D Contributor | Developer of VCCNR | Developer of KTB | Ex-Scripter of EAD

KAKAN

Well, see this command.
else if( c == "hi"){
local pos = player.Pos;
pos.x+= 5;
}
It'll increase your x coord by 5, your command does the same.
Try MatheuS's code.
oh no

rww

Join to Irrelevant Club Discord: https://discord.gg/MsPPZ5uV4X