Staredit Network > Forums > Modding Assistance > Topic: Giving buildings attacks
Giving buildings attacks
Jun 26 2009, 11:58 pm
By: Mantis  

Jun 26 2009, 11:58 pm Mantis Post #1



What is the proper way to give a building an attack so it will work properly? (I am posting this on behalf of my spanish modding friend).



None.

Jun 27 2009, 1:28 am Biophysicist Post #2



Give the building a weapon and attack animations (in iscript.bin). You might have to mess around with AI actions a bit, I'm not sure.



None.

Jun 27 2009, 4:13 am Lord_Jeremy Post #3



To be more specific, you essentially have to give the building's iscript all of the attack animations that a regular attacking unit has. For instance, you'll need to create/assign animations for the following headers: gndattkinit, gndattkrpt, gndattktoidle. If you want your thingy to attack air separately you'll also need to do stuff for the airattk... headers. Take a look at a simple unit like the vulture or the marine.



None.

Jun 29 2009, 9:46 pm Yawgmoth Post #4



Make sure to change the "Attack Angle" of the weapons.dat entry you use to 128. If you don't, there will be a crash unless your building's graphic turns.



None.

Jun 30 2009, 2:08 am ShadowFlare Post #5



Well, that's not the only way to do it (but probably the easiest). You can also give it proper settings in flingy.dat so that it can turn (the graphic itself doesn't need turning frames, only if you check the box in images.dat). In my experience, I haven't seen it crash from having too small of an attack angle, but it does make it so the building can only fire at things north of it if the building cannot turn and the angle is too small.



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[06:24 pm]
NudeRaider -- "War nie wirklich weg" 🎵
[03:33 pm]
O)FaRTy1billion[MM] -- o sen is back
[01:53 am]
Ultraviolet -- :lol:
[2024-4-26. : 6:51 pm]
Vrael -- It is, and I could definitely use a company with a commitment to flexibility, quality, and customer satisfaction to provide effective solutions to dampness and humidity in my urban environment.
[2024-4-26. : 6:50 pm]
NudeRaider -- Vrael
Vrael shouted: Idk, I was looking more for a dehumidifer company which maybe stands out as a beacon of relief amidst damp and unpredictable climates of bustling metropolises. Not sure Amazon qualifies
sounds like moisture control is often a pressing concern in your city
[2024-4-26. : 6:50 pm]
Vrael -- Maybe here on the StarEdit Network I could look through the Forums for some Introductions to people who care about the Topics of Dehumidifiers and Carpet Cleaning?
[2024-4-26. : 6:49 pm]
Vrael -- Perhaps even here I on the StarEdit Network I could look for some Introductions.
[2024-4-26. : 6:48 pm]
Vrael -- On this Topic, I could definitely use some Introductions.
[2024-4-26. : 6:48 pm]
Vrael -- Perhaps that utilizes cutting-edge technology and eco-friendly cleaning products?
[2024-4-26. : 6:47 pm]
Vrael -- Do you know anyone with a deep understanding of the unique characteristics of your carpets, ensuring they receive the specialized care they deserve?
Please log in to shout.


Members Online: Roy