Project Perfect Mod Forums
:: Home :: Get Hosted :: PPM FAQ :: Forum FAQ :: Privacy Policy :: Search :: Memberlist :: Usergroups :: Register :: Profile :: Log in to check your private messages :: Log in ::


The time now is Fri Nov 08, 2024 6:54 am
All times are UTC + 0
Spawn something by specific warhead when killed?
Moderators: Ares Support Team at PPM, Global Moderators, Red Alert 2 Moderators
Post new topic   Reply to topic Page 1 of 1 [6 Posts] Mark the topic unread ::  View previous topic :: View next topic
Author Message
Mr.Hymn
Missile Trooper


Joined: 01 May 2020

PostPosted: Sun Apr 09, 2023 6:50 am    Post subject:  Spawn something by specific warhead when killed? Reply with quote  Mark this post and the followings unread

We can spawn ore after warhead hits the ground but how to do it so only when killed? Like when infantry or units are killed then we got an ores.

Back to top
View user's profile Send private message
Mig Eater
Defense Minister


Joined: 13 Nov 2003
Location: Eindhoven

PostPosted: Sun Apr 09, 2023 10:19 am    Post subject: Reply with quote  Mark this post and the followings unread

You can give the unit a custom death weapon that spawns tib/ore debris.

Ares also added the tag TiberiumSpill= which will spawn tib/ore after a harvester/refinery is destroyed, the amount depends on how much it was carrying.

_________________



Back to top
View user's profile Send private message Visit poster's website ModDB Profile ID YouTube User URL Facebook Profile URL Twitter Channel URL
G-E
Defense Minister


Joined: 09 Feb 2015

PostPosted: Sun Apr 09, 2023 10:43 am    Post subject: Reply with quote  Mark this post and the followings unread

This isn't a very good idea to me, a bunch of ore after a battle can sound good, but will clutter the battlefield and could prevent rebuilding.

_________________
http://www.moddb.com/mods/scorched-earth-ra2-mod-with-smart-ai

Back to top
View user's profile Send private message
Mr.Hymn
Missile Trooper


Joined: 01 May 2020

PostPosted: Sun Apr 09, 2023 3:44 pm    Post subject: Reply with quote  Mark this post and the followings unread

G-E wrote:
This isn't a very good idea to me, a bunch of ore after a battle can sound good, but will clutter the battlefield and could prevent rebuilding.


It’s just an example. I just want to know if I could get the specific death for being killed with specific warhead especially the units, infantry I can do.

So I can use Ares or Phobos afterwards to do something with it.

Back to top
View user's profile Send private message
Mig Eater
Defense Minister


Joined: 13 Nov 2003
Location: Eindhoven

PostPosted: Sun Apr 09, 2023 5:03 pm    Post subject: Reply with quote  Mark this post and the followings unread

You can use InfDeath= on infantry to make them spawn different anims/effects depending on the type of warhead kills it. Ares expanded on this logic with the tag InfDeathAnim=.

The closest I can think of to getting the same effect working on units would be to use DeathWeapon.Suppress=. You would give the special unit you want to kill a custom DeathWeapon & then every warhead in the game would need DeathWeapon.Suppress= except for the one you want to trigger the special DeathWeapon.

_________________



Back to top
View user's profile Send private message Visit poster's website ModDB Profile ID YouTube User URL Facebook Profile URL Twitter Channel URL
Mr.Hymn
Missile Trooper


Joined: 01 May 2020

PostPosted: Mon Apr 10, 2023 2:51 am    Post subject: Reply with quote  Mark this post and the followings unread

Mig Eater wrote:
You can use InfDeath= on infantry to make them spawn different anims/effects depending on the type of warhead kills it. Ares expanded on this logic with the tag InfDeathAnim=.

The closest I can think of to getting the same effect working on units would be to use DeathWeapon.Suppress=. You would give the special unit you want to kill a custom DeathWeapon & then every warhead in the game would need DeathWeapon.Suppress= except for the one you want to trigger the special DeathWeapon.


Thanks, the DeathWeapon.Suppress should do the trick Smile

Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [6 Posts] Mark the topic unread ::  View previous topic :: View next topic
 
Share on TwitterShare on FacebookShare on Google+Share on DiggShare on RedditShare on PInterestShare on Del.icio.usShare on Stumble Upon
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © phpBB Group

[ Time: 0.1720s ][ Queries: 11 (0.0097s) ][ Debug on ]