SlashCo Wiki

SlashCo.MapTools

MapTools

This library mainly contains functions related to mapping with hammer.

Methods

boolean SlashCo.MapTools.IsEnabled( )
Returns if the Map tools are enabled or not.
SlashCo.MapTools.Redo()
Re-applies the last change that was reverted by SlashCo.MapTools.Undo If you do any changes after calling SlashCo.MapTools.Undo without calling this function directly afterwards you cannot restore the changes again!
SlashCo.MapTools.SetEntityAngle( Entity entity, Angle newAngle )
Updates the entities angle in hammer.
SlashCo.MapTools.SetEntityPosition( Entity entity, Vector newPosition )
Updates the entities position in hammer.
SlashCo.MapTools.SetEntityPositionAndAngle( Entity entity, Vector newPosition, Angle newAngle )
Updates the entities position and angle in hammer.
SlashCo.MapTools.Undo()
Reverts the last change that was applied to hammer.