01-05-2013, 20:28
(This post was last modified: 01-05-2013, 20:50 by xtreme2010.)
How to rotate the model by 90%?
Need rotate model Entity w1-4 by 90%
Code:
if (map == "mp_bootleg")
{
Entity w1 = SpawnModel("script_model", "com_plasticcase_trap_friendly", new Vector(-948.9911f, -1846.833f, 0.125f));
Entity w2 = SpawnModel("script_model", "com_plasticcase_trap_friendly", new Vector(-948.9911f, -1846.833f, 25.125f));
Entity w3 = SpawnModel("script_model", "com_plasticcase_trap_friendly", new Vector(-948.9911f, -1846.833f, 50.125f));
Entity w4 = SpawnModel("script_model", "com_plasticcase_trap_friendly", new Vector(-948.9911f, -1846.833f, 75.125f));
Entity w5 = SpawnModel("script_model", "com_plasticcase_trap_friendly", new Vector(601.113f, 5710.868f, 406.125f));
Entity w6 = SpawnModel("script_model", "com_plasticcase_trap_friendly", new Vector(601.113f, 5681.868f, 406.125f));
Entity w7 = SpawnModel("script_model", "com_plasticcase_trap_friendly", new Vector(601.113f, 5651.868f, 406.125f));
Entity w8 = SpawnModel("script_model", "com_plasticcase_trap_friendly", new Vector(601.113f, 5621.868f, 406.125f));
Extensions.CloneBrushModelToScriptModel(w1, Extensions.FindAirdropCrateCollisionId());
Extensions.CloneBrushModelToScriptModel(w2, Extensions.FindAirdropCrateCollisionId());
Extensions.CloneBrushModelToScriptModel(w3, Extensions.FindAirdropCrateCollisionId());
Extensions.CloneBrushModelToScriptModel(w4, Extensions.FindAirdropCrateCollisionId());
Extensions.CloneBrushModelToScriptModel(w5, Extensions.FindAirdropCrateCollisionId());
Extensions.CloneBrushModelToScriptModel(w6, Extensions.FindAirdropCrateCollisionId());
Extensions.CloneBrushModelToScriptModel(w7, Extensions.FindAirdropCrateCollisionId());
Extensions.CloneBrushModelToScriptModel(w8, Extensions.FindAirdropCrateCollisionId());
}
Need rotate model Entity w1-4 by 90%