example

Example

angelscript
api, reference, chaos, hammer, example

This page contains various Chaos Hammer AngelScript examples. ExampleWedge # [Solid("script_wedge")] class ExampleWedge : ScriptSolid { GUIData[]@ GetGuiData() const { return {}; } void GuiUpdated(const dictionary@ dict) { } CMapClass@ CreateMapSolid( const BoundBox@ box, TextureAlignment align ) { float width = (box.maxs[0] - box.mins[0]) / 2; float depth = (box.maxs[1] - box.mins[1]) / 2; float height = (box.maxs[2] - box.mins[2]) / 2; Vector origin; box.GetBoundsCenter(origin); CMapFace face; CMapSolid@ solid = CMapSolid(); Vector[] points; points. ...