Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / Help with my bullet code, it does not stop the bullet or the bullet plane

Author
Message
Daniel wright 2311
User Banned
Posted: 1st May 2011 19:15 Edited at: 1st May 2011 19:17
So here is the code Im working with to place burn marks on the wall if my bullet collides with the wall, the burn mark is to be placed where the bullet,postion hits the wall,BUTTT,they never are placed on the wall, they just shoot trait into to wall.the plain does stay at the location of my bullet if I dont hit a wall so I know its working but for some reason im getting no collition with my level walls.

edit: object 3 is my bullet,and bullethole is my burn mark plain



my signature keeps being erased by a mod So this is my new signature.
Daniel wright 2311
User Banned
Posted: 1st May 2011 20:26
this right here is not working for some strange reason, im not shure why.im checking it with a flag and the flag never =1 so its not even detecting collision with my bullet,this is stupid

if SC_intersectObject(1,x3#,y3#,z3#,newx#,newy#,newz#)=1

my signature keeps being erased by a mod So this is my new signature.
Daniel wright 2311
User Banned
Posted: 1st May 2011 20:38
ok, never mind, i fixed it, i replaced it with this and now it works ok,

if SC_rayCast ( 1,x3#,y3#,z3#,newx#,newy#,newz#,100000 )

my signature keeps being erased by a mod So this is my new signature.

Login to post a reply

Server time is: 2026-07-11 13:58:28
Your offset time is: 2026-07-11 13:58:28