Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if ( ! heli )
- {
- new
- Float: nodeX, Float: nodeY, Float: nodeZ, Float: nextX, Float: nextY,
- nodeid = NearestNodeFromPoint( g_businessData[ businessid ] [ E_X ], g_businessData[ businessid ] [ E_Y ], g_businessData[ businessid ] [ E_Z ] ),
- nextNodeid = NearestNodeFromPoint( g_businessData[ businessid ] [ E_X ], g_businessData[ businessid ] [ E_Y ], g_businessData[ businessid ] [ E_Z ], 9999.9 )
- ;
- GetNodePos( nextNodeid, nextX, nextY, nodeZ );
- GetNodePos( nodeid, nodeX, nodeY, nodeZ );
- new
- business_car = GetBusinessCarModelIndex( g_businessData[ businessid ] [ E_CAR_MODEL_ID ] ),
- Float: rotation = atan2( nextY - nodeY, nextX - nodeX ) - 90.0
- ;
- g_businessVehicle[ businessid ] = CreateVehicle( g_businessCarModelData[ business_car ] [ E_MODEL ], nextX, nextY, nodeZ, rotation, 3, 3, -1 );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement