Blockland Forums > Modification Help
Brick setShapeName script
Furling:
--- Quote from: Destiny/Zack0Wack0 on August 20, 2010, 12:47:12 AM ---Hint: create a static shape with a name at the brick's position.
--- End quote ---
I not understand what you try say ? do you mind post here script.
otto-san:
setShapeName was disabled in v11, wasn't it?
Crysist:
--- Quote from: otto-san on August 20, 2010, 07:21:07 AM ---setShapeName was disabled in v11, wasn't it?
--- End quote ---
For bots.
Headcrab Zombie:
--- Quote from: Crysist on August 20, 2010, 10:56:19 AM ---For bots.
--- End quote ---
And players
--- Quote from: Furling on August 20, 2010, 04:42:01 AM --- I not understand what you try say ? do you mind post here script.
--- End quote ---
There is no setShapeName method for bricks, so the way your doing this will never work.
You need to create the function, and have it create a StaticShape, set its position to where the brick is, and then setShapeName on the static shape.
You'll also need to do some other things, like create a variable with the value as the StaticShape, so you can reference it in functions like setShapeNameColor and setShapeNameDistance. You also need to parent onDeath/onRemove so that the StaticShape is deleted when the brick is deleted.
Furling:
--- Quote from: Headcrab Zombie on August 20, 2010, 02:40:41 PM ---You need to create the function, and have it create a StaticShape, set its position to where the brick is, and then setShapeName on the static shape.
You'll also need to do some other things, like create a variable with the value as the StaticShape, so you can reference it in functions like setShapeNameColor and setShapeNameDistance. You also need to parent onDeath/onRemove so that the StaticShape is deleted when the brick is deleted.
--- End quote ---
Wow you blew up woosh my mind, this hard making script, I am try basic learn this my frist time script mod. least try...