function brick3x3x3Data::onPlant(%this,%obj){ %obj.setColliding(0);}
If its that particular brick you want to decollision on placement you just need this code:Code: [Select]function brick3x3x3Data::onPlant(%this,%obj){ %obj.setColliding(0);}I think.
datablock fxDTSBrickData (brick3x3x3Data){BrickFile = "Add-Ons/Bricks/Bricks3x3x3.blb";Category = "Bricks";SubCategory = "1x";UiName = "3x3x1";IconName = "";};function brick3x3x3Data::onPlant(%this, %obj){ %obj.setColliding(0);}
function brick3x3x3Data::onPlant(%this, %obj){schedule(100,0,decollideBrick,%obj);}function decollideBrick(%obj){if(isObject(%obj)){ %obj.setColliding(0); }}
datablock fxDTSBrickData (brick3x3x3Data){BrickFile = "Add-Ons/Bricks/Bricks3x3x3.blb";Category = "Bricks";SubCategory = "Custom Bricks";UiName = "3x3x1_Decollide_Brick";IconName = ""; };function brick3x3x3Data::onPlant(%this, %obj){ schedule(100,0,decollideBrick,%obj);}function decollideBrick(%obj){ if(isObject(%obj)) { %obj.setColliding(0); }}
How do you check to see if the player is standing on a brick?I am trying to modify the Building Platform.
/*! Cast a ray from start to end, checking for collision against items matching mask.If exempt is specified, then it is temporarily excluded from collision checks (For instance, you might want to exclude the player if said player was firing a weapon.)@returns A string containing either null, if nothing was struck, or these fields: - The ID of the object that was struck. - The x, y, z position that it was struck. - The x, y, z of the normal of the face that was struck. */ virtual string containerRayCast( Point3F start, Point3F end, bitset mask, SceneObject exempt=NULL ) {} /// @}