Rotate a spawned model?
Posted: Sun Mar 25, 2007 5:40 pm
Hello, it's me again! 
(i am curious because i try to understand how it work, so sorry for my multiple topics)
So now i spawn and delete a model with a script (i learn it alone! lol Thanks again jv_map!)
And my problem now it's i can't find the command to rotate a model, because my model is not in the good orientation. (see picture: the green is my actual model. And i want that the model spawn in the same position like the red on the picture).

How i can do that in the script?
Thanks
Al
edit:
i can put a part of my script:
(i am curious because i try to understand how it work, so sorry for my multiple topics)
So now i spawn and delete a model with a script (i learn it alone! lol Thanks again jv_map!)
And my problem now it's i can't find the command to rotate a model, because my model is not in the good orientation. (see picture: the green is my actual model. And i want that the model spawn in the same position like the red on the picture).

How i can do that in the script?
Thanks
Al
edit:
i can put a part of my script:
Code: Select all
main:
// set scoreboard messages
setcvar "g_obj_alliedtext1" "Southern France"
setcvar "g_obj_alliedtext2" ""
setcvar "g_obj_alliedtext3" ""
setcvar "g_obj_axistext1" ""
setcvar "g_obj_axistext2" ""
setcvar "g_obj_axistext3" ""
setcvar "g_scoreboardpic" "mohdm1"
// call additional stuff for playing this map round based is needed
if(level.roundbased)
thread roundbasedthread
level waitTill prespawn
//*** Precache Dm Stuff
exec global/DMprecache.scr
level.script = maps/dm/mohdm1.scr
exec global/ambient.scr mohdm1
//exec global/ambient.scr mohdm2
//$world farplane 5000
//$world farplane_color (.333 .333 .329)
level waittill spawn
wait 5
local.panzer = spawn models/human/flowerpainting.tik
local.panzer.origin = ( -82.91 201.41 -43.35 )
local.panzer.angle = 180
local.panzer solid
local.panzer immune bullet
local.panzer immune fast_bullet
local.panzer immune bash
local.panzer immune mg
local.panzer immune explosion
local.panzer nodamage
end