Effect Spawner

Discussions about Coding and Scripting

Effect Spawner

Postby Barbie » Wed Jan 11, 2017 6:47 am

In a map I'm converting from Unreal to Monsterhunt I found an idea that was not technically realized there: every time a pawn enters a teleporter, an 'UnrealShare.PawnTeleportEffect' should be spawned at the destination teleporter. Because Effects do not trigger their events, the ThingFactory waits forever after spawning the first Effect for the message that the spawned Effect has "died" and a new one should be spawned.

The solution seems very easy: develop a "TriggeredThingFactory" that spawns the given prototype each time it is triggered. Because IMO this is a common problem I thought there must be already such an "TriggeredThingFactory", but I found only effectspawner what is much too complex. Has anybody such in his drawer?
"Multiple exclamation marks," he went on, shaking his head, "are a sure sign of a diseased mind." --Terry Pratchett
User avatar
Posts: 1687
Joined: Fri Sep 25, 2015 9:01 pm
Location: moved without proper hashing

Re: Effect Spawner

Postby sektor2111 » Wed Jan 11, 2017 9:25 am

I don't know if this is such a big deal. Sublass SpawnPoint into a child and write stuff there else... I'm using XCGE for removing that idiotic original spam and adding SpawnEffect from Level.Game a la Playerstart for players when a monster is being spawned, is not a Rocket Science, and has nothing to do with a new type of CREATUREFACTORY, ThingFactory has another purpose than spawning Pawns, btw. I'm not even bother to look over complex useless things as long as they are doable that easy.
User avatar
Posts: 4038
Joined: Sun May 09, 2010 6:15 pm
Location: On the roof.

Return to Coding, Scripting

Who is online

Users browsing this forum: No registered users and 2 guests