|
Post by TinSoldier on Dec 18, 2016 23:38:15 GMT
// OBJ_0 player 1 // " "176 " " 2 // " "198 " " 3 // " "220 " " 4 // " "242 " " 5 // " "264 " " 6 // OBJ_44 = map sprite // OBJ_22 = Player 1 sprite // OBJ_66 = Player 2 " " // OBJ_88 = Player 3 " " // OBJ_110 = Player 4 " " // OBJ_132 = Player 5 " " // OBJ_154 = Player 6 " " Vector3 CarLoc; // vehicles physical location on the track Vector3 SpriteLoc; // sprite location on the map Vector3 MapLoc; // maps on screen location
void Main(){ iObjectLocation(OBJ_44, MapLoc);
//Player 1 Green iObjectLocation(OBJ_0, CarLoc); // player 1 on track location SpriteLoc.x = (CarLoc.x / 28.752) +MapLoc.x; // translate player's sprite SpriteLoc.y = (CarLoc.z / 28.752) +MapLoc.y; // x,y map location iObjectLocationSet(OBJ_22,SpriteLoc); // apply spite location
//Player 2 Blue iObjectLocation(OBJ_176, CarLoc); SpriteLoc.x = (CarLoc.x / 28.752) +MapLoc.x; SpriteLoc.y = (CarLoc.z / 28.752) +MapLoc.y; iObjectLocationSet(OBJ_66,SpriteLoc);
//Player 3 Yellow iObjectLocation(OBJ_198, CarLoc); SpriteLoc.x = (CarLoc.x / 28.752) +MapLoc.x; SpriteLoc.y = (CarLoc.z / 28.752) +MapLoc.y; iObjectLocationSet(OBJ_88,SpriteLoc);
//Player 4 LightBlue iObjectLocation(OBJ_220, CarLoc); SpriteLoc.x = (CarLoc.x / 28.752) +MapLoc.x; SpriteLoc.y = (CarLoc.z / 28.752) +MapLoc.y; iObjectLocationSet(OBJ_110,SpriteLoc);
//Player 5 Red iObjectLocation(OBJ_242, CarLoc); SpriteLoc.x = (CarLoc.x / 28.752) +MapLoc.x; SpriteLoc.y = (CarLoc.z / 28.752) +MapLoc.y; iObjectLocationSet(OBJ_132,SpriteLoc);
//Player 6 Orange iObjectLocation(OBJ_264, CarLoc); SpriteLoc.x = (CarLoc.x / 28.752) +MapLoc.x; SpriteLoc.y = (CarLoc.z / 28.752) +MapLoc.y; iObjectLocationSet(OBJ_154,SpriteLoc); }
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Dec 19, 2016 21:49:03 GMT
THANKS
|
|
|
Post by Power Supersport on Dec 20, 2016 20:33:50 GMT
That'll definetly come in handy for some people... I remember how hard I found how to make a mini map when I was newbie in 3D Rad...
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Dec 20, 2016 23:29:56 GMT
|
|
|
Post by NicusorN5 on Dec 21, 2016 19:18:13 GMT
Stickied. Very usefull!
|
|
|
Post by Karvy on Dec 27, 2016 15:23:29 GMT
Does there exist a way to make imposter cars and then applying this script with imposter sprites??
|
|
|
Post by Famer on Jan 13, 2017 14:31:24 GMT
Thank you Soldier!
|
|
|
Post by NicusorN5 on Jan 13, 2017 15:03:11 GMT
Does there exist a way to make imposter cars and then applying this script with imposter sprites?? No , Cars cannot be used by the Imposter object...
|
|