HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

plz help me on this trigger...

08-02-2004, 04:19 AM#1
nkknight
i would like to have a trigger that is similar to the weapon auto firing while the attacking unit is moving , just like the tank in the map tank commander.

in the map tank commander, the tanks can auto attack anything that is near it with machine guns, even when it is moving. but cant control which unit to target.

can someone help me out please? i want to use it on my new map...plz plz help me><
08-02-2004, 05:44 AM#2
R3N3G4D3
You can create a unit with no model (making it invisible) at the location of the tank while it moves, and the unit will auto-attack targets near the tank, then you could keep moving the invisible unit instantly to current location of the tank every .25 seconds or something, also the invisible unit needs to either have "instant" for missle type so its attack won't be interupted when it is moved to current location of the tank, or change the backswing point and damage point to 0.001 so the missle is launched almost instantaneously as the attack starts.
08-02-2004, 09:32 AM#3
mefist
It is done buy modifying the Phoenix "Phoenix Fire" ability
08-02-2004, 01:19 PM#4
th15
First of all let me clear this up, PHOENIX FIRE SUCKS. I'm sick and tired of people telling everyone to use that to make turrets. Phoenix fire has crap for functionality. You can't set damage type, you can't add special effects to the attacks and you can't add too many because it screws up your command card.

The turrets in TC are done the way renegade says. Each turret is a unit with <space>.mdl as it's model (double click the unit's model field and press spacebar once for the path).

Each turret is assigned to a large 2-dimensional unit array. Every 2 seconds (believe it or not, the delay I use is 2 seconds for TC v0.8 onwards) a trigger traverses this loop, moving each unit in the array to the position of each player's tank.

However, if you're new to triggers then I suggest you don't try doing this. Done badly, the trigger for this stuff can kill a map with mem leaks (hell even the latest version of my map still leaked).
08-02-2004, 01:40 PM#5
mefist
You can add special effect for Phoenix Fire.
08-02-2004, 01:44 PM#6
th15
Can you add burning oil to phoenix fire? Can you add frost effects to phoenix fire? Can you recreate my thunder whip with phoenix fire? Hell you can't even do the concussion waves with phoenix fire. That's what I meant by special effects. Projectile art is peanuts.