Detection Weapon
|
|
0 votes |
||||||||||||||||
Here's an easy-ish way to make a detection weapon. It can be given to anything and will make a warning sound whenever an enemy unit or infantry enters it.
Here goes, I've added comments to some tags for new modders who don't know what the half of this means (it wouldn't be a tutorial if I didn't explain some things).
Now you need to code the Warhead, remember to add this to the [Warheads] list
xx=DetectionWH ;where xx is the no. after the last in the list
That's all you really need there, but you can add AnimList=xxxx to the warhead to get it to play an animation over the detected unit. I suggest either WAKE1 or RING. Alternatively Anim=xxxx on the weapon itself will play an animation on the detecting structure.
WAKE1 is an anim used with the Squid and RING is the anim it plays behind the mouse when you tell something to move.
Here goes, I've added comments to some tags for new modders who don't know what the half of this means (it wouldn't be a tutorial if I didn't explain some things).
| Code |
[Detector] |
Now you need to code the Warhead, remember to add this to the [Warheads] list
xx=DetectionWH ;where xx is the no. after the last in the list
| Code |
[DetectionWH] |
That's all you really need there, but you can add AnimList=xxxx to the warhead to get it to play an animation over the detected unit. I suggest either WAKE1 or RING. Alternatively Anim=xxxx on the weapon itself will play an animation on the detecting structure.
WAKE1 is an anim used with the Squid and RING is the anim it plays behind the mouse when you tell something to move.







