Blockland Forums > Modification Help
Is it Possible to create a solid laser for a Weapon?
Port:
--- Quote from: Xalos on May 18, 2012, 02:35:22 PM ---I haven't worked much with static shapes; are they controllably tiltable?
--- End quote ---
You can dynamically position, rotate and scale them.
Treynolds416:
--- Quote from: Port on May 20, 2012, 04:43:06 AM ---You can dynamically position, rotate and scale them.
--- End quote ---
Seems fun. Since you like static shapes port, would you mind maybe doing a tutorial on them? It seems like a useful thing to know how to use
Port:
--- Quote from: Treynolds416 on May 20, 2012, 06:44:09 AM ---Seems fun. Since you like static shapes port, would you mind maybe doing a tutorial on them? It seems like a useful thing to know how to use
--- End quote ---
They're pretty basic, really.
--- Code: ---datablock staticShapeData( datablockName )
{
shapeFile = "path/to/model.dts";
};
...
%obj = new staticShape()
{
position = "0 0 0"; // This line is optional, you can position it yourself later when needed.
datablock = datablockName;
};
--- End code ---
They pretty much have the same functionality as you would expect from a normal model-based object (setTransform, setScale, setNodeColor, unhideNode, hideNode, getPosition, getTransform, etc.), however they lack setVelocity and getVelocity. They are not affected by gravity or other forces in any way, however you can collide with them.
Treynolds416:
Sounds fun, thanks
I'll try using them
ShadowsfeaR:
I've made laser effects on some of my weapons (none of them are functioning, but they look cool).