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

How do i activate a script when a linedef is used?

Question

I wanna make a message appear when the player uses a linedef, it works, but the message also comes up when the level starts which is not what i want

Share this post


Link to post

5 answers to this question

Recommended Posts

  • 0
43 minutes ago, StillChillBoi said:

I wanna make a message appear when the player uses a linedef, it works, but the message also comes up when the level starts which is not what i want

 

Since we cannot read your mind or deduce what you have done on your computer, it is always a good practice to give lots of information, like uploading the text of your script.

 

What type of script do you use?

https://zdoom.org/wiki/Script_types

Share this post


Link to post
  • 0

Well the script looks like this:

#include "zcommon.acs"

 

script 1 OPEN {
    Print(s:"You aint gonna walk out of here and let the demons spread hell into the building! Plus, the lift is broken!");
}

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
×