Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
ExIm

How can make a secret from script?

Recommended Posts

I'm newbie at creating map from Doom Builder 2 and currently making my first map. I use ZDoom in Hexen format.

I don't know how to make a secret that, when you press a switch on the wall, item is spawned and you find the secret (Secret message show and gain higher number of secrets you found).

Currently, I only know how to spawn thing using script but don't know about secret.

Share this post


Link to post

OK, Now I found the good way to demonstrate something similar to this.

When I press switch, I use TeleportInSector function to teleport myself to hidden secret sector and then teleport back again to the same sector immediately. I also set that sector's brightness to 0 and delete the texture in all sides so that the player may not realize that he/she is teleported to that sector.

Anyway, If anybody know the better way to do this please let me know :D

Share this post


Link to post

In the Things list under ZDoom (I think) there is a "secret actor", which can be activated with a script using Thing_Activate(thing ID); to give the player a secret found. These count towards the overall secret count, although they are obviously not visible as map geometry or anything.

Share this post


Link to post

Wow! That's way a lot easier! Use only one thing and one script line.

Actually, I know that there is Sector Secret thing but I don't know that I have to activate it and how to activate -_-"

Thanks a lot! :D

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×