Jump to content

Start level with specific weapon?


Panda

Recommended Posts

The truth is that it worked for me to add weapons in the following way:

 

Spoiler

script 1 OPEN
{

    GiveInventory("ShotgunX2", 1);
}

 or

 

script 1 OPEN
{

    GiveActorInventory(0, "ShotgunX2",1);
}

 

 

I have the game configured in "PlayerDoom" so that it starts only with the fist. Since that is the objective of the first level. But at the start of the second level I want the player to spawn with weapon drawn, but he doesn't. At the start, even though the player already has the extra weapon, they still show the fist at the start of the level.

 

Is there a way to achieve this?

Share this post


Link to post

You want the player to have a different inventory depending on the map they start? If I recall, player inventory is set using a new Player class which replaces the old one, but I don't know if you can change the Player class based on the map.

Share this post


Link to post

You have to use ENTER scripts, not OPEN, to run them in the player's context. OPEN runs in world scope, you cannot do inventory manipulation there.

 

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
Reply to this topic...

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