| Blockland Forums > Modification Help |
| Bricks sometimes not colliding properly with players/vehicles? |
| (1/3) > >> |
| otto-san:
I've noticed that sometimes when I create bricks through script (making fxDTSBrick objects), they don't collide properly with players and vehicles. They both just choppily move through them. Raycasts also ignore them when this happens. Any ideas of why this could be? I've run into it multiple times, and I'd like to know a solution. |
| computermix:
--- Code: ---%brick = new fxDtsBrick() { isPlanted = 1; datablock = brick1x1data; }; %brick.plant(); %brick.setTrusted(1); --- End code --- this works for me when I had this problem either you didn't do .plant(), isPlanted =1, or something. you may not want to do .setTrusted. Only use it when you create a brickgroup, add the brick to it, and then do that. if this doesn't work just look at truce's autobridge script. |
| otto-san:
I don't recall a time I've ever not done either of those. |
| computermix:
--- Quote from: otto-san on April 13, 2012, 09:11:27 PM ---I don't recall a time I've ever not done either of those. --- End quote --- --- Quote ---if this doesn't work just look at truce's autobridge script. --- End quote --- |
| Brian Smithers:
go on steam and ill fix your bad code |
| Navigation |
| Message Index |
| Next page |