HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Rotating Buildings

02-20-2004, 08:23 AM#1
Telamon
Hey, I'm making a store based off the the Shrine of Aszara model and I would really love to be able to rotate the model 90 degrees so that it points the other way. Is there any way to do this?
02-20-2004, 09:00 AM#2
Pheonix-IV
edit the highlighted text, however this will change the rotation of ALL buildings, the rotation could also be done by triggers but it tends to be a bit buggy.
02-20-2004, 09:00 AM#3
Pheonix-IV
helps if i remember to attach
02-20-2004, 09:27 PM#4
ThyFlame
function Trig_Place_Azshara_Actions takes nothing returns nothing
call CreateNUnitsAtLoc( 1, 'nnsa', Player(0), GetRectCenter(gg_rct_Spawn_Azshara), 90.00 )
endfunction

//=============================================
function InitTrig_Place_Azshara takes nothing returns nothing
set gg_trg_Place_Azshara = CreateTrigger( )
call TriggerRegisterTimerEventSingle( gg_trg_Place_Azshara, 0.01 )
call TriggerAddAction( gg_trg_Place_Azshara, function Trig_Place_Azshara_Actions )
endfunction


Basically, when the elapsed time is .01, you spawn the shrine (which'll be the store for you) at a specified location. The spawn allows you to tell who owns it (neutral or a certain player), and the degrees it 's facing

Not too sloppy, IMO. Two line trigger.

[Edit to fix appearance]
02-21-2004, 01:37 AM#5
Pheonix-IV
that trigger works, but i've discovered a bug with it and every other way to spawn buildings, quite often the building dosnt spawn where you built it, it often spawns a little to one side or the other, can get really annoying.
02-21-2004, 01:51 AM#6
Hiro
Untitled Trigger 002
Events
Map initialization
Conditions
Actions
Unit - Make <building> face <360.00 or 180.00> over 0.00 seconds
02-21-2004, 02:41 AM#7
bile
If you are only putting say 1 or 2 you can rotate them manually. You can change the "Is building True/False" tab to False, then rotate the model on the map, then switch it back to True. For some reason the unit keeps the rotation. But if you are building it from a peon then that won't work.