Jump to content
  • 0

Two issues.


HyperLuke

Question

I have a script that lowers some floors, that is supposed to activate when an attack from the player hits a switch, but it activates as soon as the map starts for some reason. Capture2.PNG.9eabce7252f7f2f14caba6fe7da86368.PNG

In addition, in part of the script, I would like some items, in this case, a BFG and some plasma cells, to appear in a designated spot, and I am not sure how to do that. 

 

Thanks in advance.

Share this post


Link to post

4 answers to this question

Recommended Posts

  • 0

Wow, less than an hour response, that's awesome. The changing open to void worked, what does void actually do though?  

 

And in what sort of context do I use the Spawnspot command? Still not used to how it works.

 

 

Share this post


Link to post
  • 0

1. Scripts of type (void) or (<insert some parameters here>) are executed when you call them via ACS_Execute or similar function, whereas scripts of other types are executed automatically under specific circumstances, see https://zdoom.org/wiki/Script_types.

2. The wiki should be clear enough if only you read it, but anyway: Put a map spot into your map, give it a tag for example 123, then use a command SpawnSpot("BFG9000",123); in your script, and when the script will be executed, BFG9000 will be spawned onto the map spot.

Edited by scifista42

Share this post


Link to post
  • 0
10 minutes ago, scifista42 said:

1. Scripts of type (void) are executed when you call them via ACS_Execute or similar function, whereas scripts of other types are executed automatically under specific circumstances, see https://zdoom.org/wiki/Script_types.

2. The wiki should be clear enough if only you read it, but anyway: Put a map spot into your map, give it a tag for example 123, then use a command SpawnSpot("BFG9000",123); in your script, and when the script will be executed, BFG9000 will be spawned onto the map spot.

It worked, thanks @scifista42, your help is much appreciated, I will look at the wiki in future before asking for help. 

Edited by HyperLuke

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...