Jump to content


Photo

How to create spawnable units?


  • Please log in to reply
2 replies to this topic

#1 shadowchoko666

shadowchoko666
  • Members
  • 16 posts

Posted 23 April 2019 - 11:14 PM

Hello.
My question is, how do you make spawnable units?
What I mean is, make it so that the units in the OCL only last a certain time (like the spawnable units from Summon Allies, Summon Hobbits, etc).
I have created a special power for the archer to summon 3 Noldor warrior hordes, but they are permanent. I want to make them last only 30 or 60 seconds.

Thanks in advance!

#2 Ridder Geel

Ridder Geel

    Master Yelloh

  • T3A Staff
  • 10,852 posts
  • Location:The Netherlands (AKA: Holland)
  • Projects:RC Mod + SEE + RTS Engine
  •  The Dangerous T3A Team Chamber Member
  • Division:BFME
  • Job:T3A Staff

Posted 24 April 2019 - 11:11 AM

If i'm not mistaken its the lifetimeupdate that handles this...

Behavior = LifetimeUpdate ModuleTag_TheLifetimeUpdate
;L00FB3DB0->L01EF44D8:
MinLifetime = 500 ;SUB_L00E6CB10:Unsigned Integer Value
MaxLifetime = 1000 ;SUB_L00E6CB10:Unsigned Integer Value
WaitForWakeUp = Yes ;SUB_L006D3400:Boolean
ScoreKill = No ;SUB_L006D3400:Boolean
DeathType = NORMAL ;SUB_L006D3B30 L02235710
; NORMAL / NONE / CRUSHED / BURNED / EXPLODED / POISONED / TOPPLED / FLOODED
; / SUICIDED / LASERED / DETONATED / SPLATTED / POISONED_BETA / EXTRA_2 / EXTRA_3
; / EXTRA_4 / EXTRA_5 / EXTRA_6 / EXTRA_7 / EXTRA_8 / KNOCKBACK / SUPERNATURAL
; / FADED / SLAUGHTERED
End

Ridder Geel

#3 Jokuc

Jokuc

    Hardcore Procrastinator

  • Members
  • 187 posts
  • Location:Sweden
  •  Mapper

Posted 29 April 2019 - 10:43 AM

Create a child object for the unit you want to summon then change the lifetime update module for that child.






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users