Random spawn actor
Forte
Member, PRO Posts: 297
Hi everyone,
How do i make an actor randomly spawn a actor? e.g. when the actor is killed, by a chance, it leaves a powerup behind
Cheers, Dragokillz
How do i make an actor randomly spawn a actor? e.g. when the actor is killed, by a chance, it leaves a powerup behind
Cheers, Dragokillz
Comments
Integer self.chanceOfDroppingAnItem
Rule
When (whatever kills the actor)
-----Change Attribute: self.chanceOfDroppingAnItem To: random(1,100)
-----Rule
-----When self.chanceOfDroppingAnItem <= self.niceness
----------Spawn Item
-----Timer After 0.1
----------Destroy Actor
P.S. I bought your iphone app Danger Cats. It is very good!