Jump to content
  • 0

Permanent turret in UDMF - how?


blod

Question

How do I make a turret that starts firing when the player enters the sector and stops firing when the player leaves the sector?

Is it possible in UDMF without using the script?

I know about the existence of SpawnProjectile actions and 'Actor enters sector' thing, but how to combine them correctly?

Share this post


Link to post

7 answers to this question

Recommended Posts

  • 0

Is your intent to have some kind of puzzle where you have to move between "safe" and "unsafe" sectors?

 

If not, then are you sure that's exactly what you want? Such a thing - as specified - would only work if the player and the turret are in the exact same sector, which means that the entire area would have to be one sector with the same floor/ceiling heights, floor/ceiling textures, and same light throughout.

 

It sounds more like what you want is a monster which has no speed and so cannot move, and its fire set to continuous while in sight like the Arachnotron does. That would be far more flexible than a turret which requires the player to be in the same exact sector.

 

Share this post


Link to post
  • 0
12 minutes ago, Stabbey said:

Is your intent to have some kind of puzzle where you have to move between "safe" and "unsafe" sectors?

 

If not, then are you sure that's exactly what you want? Such a thing - as specified - would only work if the player and the turret are in the exact same sector, which means that the entire area would have to be one sector with the same floor/ceiling heights, floor/ceiling textures, and same light throughout.

 

It sounds more like what you want is a monster which has no speed and so cannot move, and its fire set to continuous while in sight like the Arachnotron does. That would be far more flexible than a turret which requires the player to be in the same exact sector.

 

So the answer is no ((
I actually wanted to make a decorative spawner on my map, which would just shoot fireballs into the sky.

I thought it could be done in UDMF without a script. Maybe someone has an example of ACS for this?

Share this post


Link to post
  • 0

I didn't say "no". I don't know enough scripting to answer. I was just trying to understand what you wanted, because that matters if you want a answer which helps solve the problem you want to solve.

Share this post


Link to post
  • 0

Comparing my problem and your answer, I conclude that such permanent projectile spawner is impossible without ACS, so I said "no" to myself.

But thanks for the answer.

By the way, what is the purpose of such spawner/turret, I described earlier (tech interior decorating).

Share this post


Link to post
  • 0

While you need a script it's very trivial. All it needs to do is to spawn a projectile, wait, then restart itself. This script is then started by the "actor enters sector" thing, and terminated by a "actor leaves sector" thing. See attached example.

 

 

fireballtrap.zip

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...