hey im trying to build a chat controlled transporter for players here is what i got:
it sends the cords rigth but the send just stays at 1 so if i use it, usuallly dosent work at all, or it teleports the player over and over agian till a new chat message is said...Code:@name Asgard @inputs @outputs OX OY OZ DX DY DZ Send Retrive Evrything @persist Chat:array Target:entity AimPos:vector @trigger all runOnChat(1) Chat=lastSaid():explode(":") if (Chat:string(1)=="player") { Target = findPlayerByName(Chat:string(2)) TargetPos = Target:pos() OX = TargetPos:x() OY = TargetPos:y() OZ = TargetPos:z() Evrything = 0 Send = 1 } if (Chat:string(1)=="set") { AimPos = owner():aimPos() DX = AimPos:x() DY = AimPos:y() DZ = AimPos:z() }
how do i fix this pice of crap ?


LinkBack URL
About LinkBacks




Reply With Quote

os()


Bookmarks