13.08.2011, 03:09
Quote:
lol............
1. Attach the magnet object 2. use onplayerkeystatechange to make it move up and down 3. store the negative z height of the magnet from the helicopter 4. use the helicopter's x and y minusing the magnet's z to check if a vehicle is like inrange of 13.4(max car range, planes not included) of that 5. get the top of the vehicle's position, and calculate the distance between the magnet and the head/roof 6. there we go!? |
7. Update the lifted vehicles position using OnPlayerUpdate