I need to spawn a trigger_multiple on map. The objective is to make a start point/end point on a timer. So i got the "area" that i need to make it as start point, vmf gave me this:
Code:
entity
{
"id" "282198"
"wait" "1"
"StartDisabled" "0"
"spawnflags" "4097"
"origin" "-8541.5 193 14874.5"
"classname" "trigger_multiple"
connections
{
"OnStartTouch" "!activatorSetDamageFilternofall0-1"
}
solid
{
"id" "2889"
side
{
"id" "2890"
"plane" "(-9540.0 -1109.0 14893.0) (-9540.0 1495.0 14893.0) (-7543.0 1495.0 14893.0)"
"smoothing_groups" "0"
"material" "TOOLS/TOOLSTRIGGER"
"uaxis" "[0.0 1.0 0.0 0] 0.25"
"vaxis" "[1.0 0.0 0.0 -52] 0.25"
"lightmapscale" "16"
}
side
{
"id" "2891"
"plane" "(-9540.0 -1109.0 14893.0) (-9540.0 -1109.0 14856.0) (-9540.0 1495.0 14856.0)"
"smoothing_groups" "0"
"material" "TOOLS/TOOLSTRIGGER"
"uaxis" "[0.0 0.0 1.0 -32] 0.25"
"vaxis" "[0.0 -1.0 0.0 0] 0.25"
"lightmapscale" "16"
}
side
{
"id" "2892"
"plane" "(-7543.0 1495.0 14893.0) (-7543.0 1495.0 14856.0) (-7543.0 -1109.0 14856.0)"
"smoothing_groups" "0"
"material" "TOOLS/TOOLSTRIGGER"
"uaxis" "[0.0 0.0 1.0 -32] 0.25"
"vaxis" "[0.0 -1.0 0.0 0] 0.25"
"lightmapscale" "16"
}
side
{
"id" "2893"
"plane" "(-7543.0 -1109.0 14893.0) (-7543.0 -1109.0 14856.0) (-9540.0 -1109.0 14856.0)"
"smoothing_groups" "0"
"material" "TOOLS/TOOLSTRIGGER"
"uaxis" "[0.0 0.0 1.0 -32] 0.25"
"vaxis" "[1.0 0.0 0.0 -52] 0.25"
"lightmapscale" "16"
}
side
{
"id" "2894"
"plane" "(-9540.0 1495.0 14893.0) (-9540.0 1495.0 14856.0) (-7543.0 1495.0 14856.0)"
"smoothing_groups" "0"
"material" "TOOLS/TOOLSTRIGGER"
"uaxis" "[0.0 0.0 1.0 -32] 0.25"
"vaxis" "[1.0 0.0 0.0 -52] 0.25"
"lightmapscale" "16"
}
side
{
"id" "2895"
"plane" "(-9540.0 1495.0 14856.0) (-9540.0 -1109.0 14856.0) (-7543.0 -1109.0 14856.0)"
"smoothing_groups" "0"
"material" "TOOLS/TOOLSTRIGGER"
"uaxis" "[0.0 1.0 0.0 0] 0.25"
"vaxis" "[1.0 0.0 0.0 -52] 0.25"
"lightmapscale" "16"
}
}
}
and i think the only (or best) way to do this is this way:
Code:
new ent = CreateEntityByName("trigger_multiple");
if (ent != -1)
{
DispatchKeyValue(ent, "origin", "-8541.5 193 14884");
....
}
but how can i set the size/rotation of the entity?
thanks in advance