• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Questions on Unit customization and minimap

Status
Not open for further replies.

MU2

MU2

Level 3
Joined
Oct 13, 2009
Messages
24
I have a few questions and i would rally appreciate it if somebody helps

1. Im creating a new map and in the map i set different camera angles for different players. But the problem now is thatthe minimap is in the wrong direction and all the units face the wrong direction. How do i make all the units face the front and how do i create different minimap angles for each player?

2. I want to create a building that produces lumber automatically without using trees. Can some one show me the triggers that i should use to achieve this?

3.Finally i have added a ability for a building so that when u click the ability the building should rotate. But i tried using triggers and it doesnt seem to work. Can anyone help me?
 
Level 5
Joined
Apr 22, 2008
Messages
139
for question 1, i don't think that its possible for every player to have a differently facing minimap
for question 2:

Lumber Trigger
Events
Time - Every 1.00 seconds of game time
Conditions
Actions
Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Unit-type of (Picked unit)) Equal to Lumber Mill
Then - Actions
Player - Add 10 to (Owner of (Picked unit)) Current lumber
Else - Actions

i attached a map with the trigger in case you need it
for question 3, im pretty sure that buildings cant be rotated by triggers. i would recommend setting the buildings turn rate to .5 or something if you really want it to turn
EDIT: i suppose technically you could make it so when the ability is activated, the building is removed and then another of the same building is created at the angle, but that could be abused to heal buildings, unless you store the buildings health. i could make this trigger, but it would take a while. let me know if you want me to make it.
 

Attachments

  • lumber trigger.w3x
    16.6 KB · Views: 61
  • Like
Reactions: MU2
Level 3
Joined
Mar 3, 2009
Messages
34
First, i think, you should try to remove the buildings pathing map - this should already work.
If not, there's another possibility:
I don't know, whether it has to be a building or maybe not nessecarily but if a unit is enough, then you can just create a custom unit and give it the building's model, ground texture etc. - and then let it rotate ;).
 
  • Like
Reactions: MU2
Level 5
Joined
Apr 22, 2008
Messages
139
i think i remember hearing somewhere that a unit with the building classification cant be rotated. and removing the pathing map would make it very annoying to try to place buildings
 

MU2

MU2

Level 3
Joined
Oct 13, 2009
Messages
24
Thanks for your help with the triggers. So that means i cant rotate the unit at all? If thats the case is there a way i can change a doodad into a unit? That way i can roatate the doodad using the fixed rotation option in the object editor and then change it to a unit and have all the rotations that i need.

Edit: the building that i need to rotate is a wall and it is horizontal. Thats why i need to rotate it so that players can build it to protect thier base from all angles.
 
Ah Walls I see. You see walls are different. The doodad of a wall has a bunch of different angles for the model file. It's a model file in the doodads(?) section maybe destructible(?) (can someone please validate which one?) if you click the dropdown list it should allow you to choose the model section. Search around a bit and you should find all the angles. Then you'll be set! Hope this helped.
 
  • Like
Reactions: MU2

MU2

MU2

Level 3
Joined
Oct 13, 2009
Messages
24
Ah Walls I see. You see walls are different. The doodad of a wall has a bunch of different angles for the model file. It's a model file in the doodads(?) section maybe destructible(?) (can someone please validate which one?) if you click the dropdown list it should allow you to choose the model section. Search around a bit and you should find all the angles. Then you'll be set! Hope this helped.

the wall is a custom model i downloaded from hive. But the problem is i need it to be built by a worker unit and i need to make various angles of the wall as a UNIT. But rotation is only possible as a doodad. Thats why i asked if i could change a doodad into a unit. Thanks for your help anyway.
 
Maybe you could request a model of different angle from the request a resource section. I don't believe that buildings can be rotated and if you click on them you'll see this is true you could always disprove me. But if you link the model file a post in the request a resource section someone can edit and make different angles in the model editor thing. Hope this helped! Good Luck
 
Status
Not open for further replies.
Top