enum struct BeamVec
{
float x;
float y;
float z;
void Init(float _x, float _y, float _z)
{
this.x = _x;
this.y = _y;
this.z = _z;
}
}
enum struct Beams
{
BeamVec from;
BeamVec to;
bool GetBeamFrom(BeamVec result)
{
result = this.from;
return true;
}
}
public void OnPluginStart()
{
BeamVec first;
BeamVec Temp;
first.Init(2.2, 3.4, 66.6);
Temp.Init(4.4, 4.4, 4.4);
Beams beam;
beam.from = first;
// Манипуляция тем что НУЖНО ПОЛУЧИТЬ
BeamVec second;
beam.GetBeamFrom(second);
second.y = 99.9;
PrintToServer("[1] First [%.2f][%.2f][%.2f] Second [%.2f][%.2f][%.2f]", beam.from.x, beam.from.y, beam.from.z, second.x, second.y, second.z);
beam.from = Temp;
PrintToServer("[2] First [%.2f][%.2f][%.2f] Second [%.2f][%.2f][%.2f]", beam.from.x, beam.from.y, beam.from.z, second.x, second.y, second.z);
}