Formula to create an object directly under a player, flat
#9

This is what I understood from Pottus's post:

Get offsets of each weapon ready so it sits perfectly on a 0,0,0 angle object
Get ground Z angle
feed them both to this function, get new offsets for wherever you want to drop
PHP код:
ObjectRotateZ(Float:RXFloat:RYFloat:RZFloat:rot_z, &Float:NewRX, &Float:NewRY, &Float:NewRZ
create object there
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)