SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 23/04/2018, 09:40 AM   #1
Little Clucker
Join Date: Jul 2015
Posts: 44
Reputation: 0
Default Pawno Geometry

Hello, Where can I learn these geometry operations?

GetVehicleRelativePos(vehicleid, &Float:x, &Float:y, &Float:z, Float:xoff= 0.0, Float:yoff= 0.0, Float:zoff= 0.0)
    new Float:rot;
    GetVehicleZAngle(vehicleid, rot);
    rot = 360 - rot;
    GetVehiclePos(vehicleid, x, y, z);
    x = floatsin(rot, degrees) * yoff + floatcos(rot, degrees) * xoff + x;
    y = floatcos(rot, degrees) * yoff - floatsin(rot, degrees) * xoff + y;
    z = zoff + z;

    return 1;
cengiz6155 is offline   Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[PAWNO] Pawno won't compile my map, please help. CrazyBosnianGamer Scripting Help 6 03/06/2016 02:18 PM
Help With MD5 Include Pawno It damages Pawno Library giorgi1494 Scripting Help 0 31/10/2014 05:04 PM
Help With Pawno Needed I Changes The Name Becouse it Is Unleading It Was Pawno zzarzzur Help Archive 3 29/01/2010 03:50 AM

All times are GMT. The time now is 02:36 PM.

Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.