so far the only way i can find to make buildings attack is by checking 'turnable' in the building's flags. however if i do that the building will turn out rotated in different degrees when placed. any1 know how to allow buildings attack without flagging them as 'turnable'?
P.S. also,a brief, simple, beginner-friendly tutorial on how to change the launch site of an attack/missile would be great
P.S. also,a brief, simple, beginner-friendly tutorial on how to change the launch site of an attack/missile would be great
I guess, you want to change the attachment point the weapon launches from? If it is an existing weapon, change the Launch Attachment Query field for the corresponding Action actor. For a new, custom weapon, you need to make sure to create such an action actor.
WOW!!! as soon as i tested and built a sentry on ur map i forgot about the whole turret thing and became fascinated at what you did.
anyways, as far as i checked, it looked like the two buildings (mine and your sentry) were basically the same (excluding the weapon and model/actor, of course) but mine just didnt work. it could be that my building (which is a fleet beacon, btw) does not turn at all and attacks while completely stationary (at least it should) and yours attacks while turning and facing the enemy. im pretty sure that all attacking structures (missile turret, spore crawler, photon cannon) rotate in a way (the photon cannon's floating ball turns towards the enemy when it shoots) and that is the reason why my building doesn't attack, since my building doesn't move at all. i think im gonna have a more deeper look into the mothership since i think it is the only thing that attacks without rotating.
P.S. what did you mean by not using a turret? if you mean by adding a turret on the weapon or the building, i tried both but didnt work.
P.P.S. that sentry getting bigger as it warped in was sooooooo cool. if you could, could you tell me briefly on how to do it? (its really only a side comment, nothing you HAVE to do)
The sentry is a Model type actor that is an attachment onto the invisible Unit type actor. It acts like the Unit type actor because it has all the same events. The Unit type actor is a model with a TurretZ attachment point so when combined with a Turret type actor can turn to attack. The unit actor is set to 0 opacity using events. The build model is just visuals using set scale events. I also added a Site actor and forced the Action actor to launch the attack from the correct location.
Rollback Post to RevisionRollBack
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
so far the only way i can find to make buildings attack is by checking 'turnable' in the building's flags. however if i do that the building will turn out rotated in different degrees when placed. any1 know how to allow buildings attack without flagging them as 'turnable'?
P.S. also,a brief, simple, beginner-friendly tutorial on how to change the launch site of an attack/missile would be great
Set the Stats: Arc field for the weapon to 360
I guess, you want to change the attachment point the weapon launches from? If it is an existing weapon, change the Launch Attachment Query field for the corresponding Action actor. For a new, custom weapon, you need to make sure to create such an action actor.
@Kueken531: Go
still doesnt work after setting arc to 360 :(
Sure you dont want to use a turret? If in doubt use this workaround.
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg
@DrSuperEvil: Go
WOW!!! as soon as i tested and built a sentry on ur map i forgot about the whole turret thing and became fascinated at what you did. anyways, as far as i checked, it looked like the two buildings (mine and your sentry) were basically the same (excluding the weapon and model/actor, of course) but mine just didnt work. it could be that my building (which is a fleet beacon, btw) does not turn at all and attacks while completely stationary (at least it should) and yours attacks while turning and facing the enemy. im pretty sure that all attacking structures (missile turret, spore crawler, photon cannon) rotate in a way (the photon cannon's floating ball turns towards the enemy when it shoots) and that is the reason why my building doesn't attack, since my building doesn't move at all. i think im gonna have a more deeper look into the mothership since i think it is the only thing that attacks without rotating.
P.S. what did you mean by not using a turret? if you mean by adding a turret on the weapon or the building, i tried both but didnt work.
P.P.S. that sentry getting bigger as it warped in was sooooooo cool. if you could, could you tell me briefly on how to do it? (its really only a side comment, nothing you HAVE to do)
The sentry is a Model type actor that is an attachment onto the invisible Unit type actor. It acts like the Unit type actor because it has all the same events. The Unit type actor is a model with a TurretZ attachment point so when combined with a Turret type actor can turn to attack. The unit actor is set to 0 opacity using events. The build model is just visuals using set scale events. I also added a Site actor and forced the Action actor to launch the attack from the correct location.
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg