ok. i've got nuclear glory, but i don't know how to use it to get a bullet to recognise when it's hit an object. i tried using raycasting but it didn't work. what did i do wrong? do you have any better ways to do this?
for sn = 1 to soldiercount
for b=1 to 9
currentbullet = bullet(sn,b)
sx# = object position x(currentbullet)
sy# = object position y(currentbullet)
sz# = object position z(currentbullet)
ex# = newxvalue(sx#, object angle y(currentbullet), 10)
ey# = newyvalue(sy#, object angle x(currentbullet), 10)
ez# = newzvalue(sz#, object angle x(currentbullet), 10)
rhit = RayIntersectTypePRO(PLAYER_OBJ, 2, sx#, sy#, sz#, ex#, ey#, ez#)
if rhit then unithealth(rayhitobjPRO) = unithealth(rayhitobjPRO)-10
next b
next sn
Your Head A-Splode