Blockland Forums > Modification Help

Detecting Vehicle Collision with a brick

Pages: (1/1)

AGlass0fMilk:

When trying to check for a collision with a brick using the vehicle's "OnCollision" method, I noticed that bricks did not cause the execution of that function. Is there any other way you know of detecting when a vehicle collides with a brick? (Vehicle does not have tires to stop it from hitting the brick)

Greek2me:

You could try fxDtsBrick::onCollision and check if the object is a vehicle. Look at the Rampaging Vehicles mod.

AGlass0fMilk:

I thought I dumped fxDTSBrick and didn't see any OnCollision but I'll check again. Never heard of that mod, haven't played/modded in a year and a half.

Edit: Checked out the mod, it packages WheeledVehicleData::OnImpact and then uses a raycast box search to check for bricks. I guess that will work.

Thanks for pointing me in the right direction.

Pages: (1/1)

Go to full version