GetPlayerInput not work in Multiplayer
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
GetPlayerInput not work in Multiplayer
Title said, "GetPlayerInput" is not working on multiplayer.
I must be need working on multiplayer.
Is there a way to solve this problem?
I must be need working on multiplayer.
Is there a way to solve this problem?
- XutaWoo
- Posts: 4005
- Joined: Sat Dec 30, 2006 4:25 pm
- Location: beautiful hills of those who are friends
- Contact:
Re: GetPlayerInput not work in Multiplayer
Yes
Put -1 instead of zero.
Put -1 instead of zero.
Re: GetPlayerInput not work in Multiplayer
Xuta
I'm already using -1 but not working
I'm already using -1 but not working
- Apothem
- Posts: 2070
- Joined: Sat Nov 29, 2003 7:13 pm
- Location: Performing open heart surgery on an ACS compiler.
Re: GetPlayerInput not work in Multiplayer
It helps if you post the script. We can't really help you if you dont show us what the problem is.
Re: GetPlayerInput not work in Multiplayer
Okay,
ACS
Decorate
ACS
Code: Select all
script 1 ENTER
{
if(GetPlayerInput(-1, INPUT_BUTTONS) & BT_CROUCH) GiveInventory("IsCrouching", 1);
delay(1);
Restart;
}
Code: Select all
actor IsCrouching : Inventory
{
Inventory.amount 0
Inventory.maxamount 1
}
Re: GetPlayerInput not work in Multiplayer
So basically, the first time the player crouches, they are given an inventory item.
- XutaWoo
- Posts: 4005
- Joined: Sat Dec 30, 2006 4:25 pm
- Location: beautiful hills of those who are friends
- Contact:
Re: GetPlayerInput not work in Multiplayer
Well
1. The item is never taken away.
2. There's no similar RESPAWN script so that when the players die it no longer works.
1. The item is never taken away.
2. There's no similar RESPAWN script so that when the players die it no longer works.
- Matt
- Posts: 9696
- Joined: Sun Jan 04, 2004 5:37 pm
- Preferred Pronouns: They/Them
- Operating System Version (Optional): Debian Bullseye
- Location: Gotham City SAR, Wyld-Lands of the Lotus People, Dominionist PetroConfederacy of Saudi Canadia
- Contact:
Re: GetPlayerInput not work in Multiplayer
What XutaWoo said, though I'd take the item away on a DEATH script instead.
Either way, though, the easiest thing would probably be to just add an "else" to the above code that takes the item away.
Either way, though, the easiest thing would probably be to just add an "else" to the above code that takes the item away.
Re: GetPlayerInput not work in Multiplayer
Thanks Xutawoo nd Vaecrius.
I'll try to add Respawn script.
I'll try to add Respawn script.
- Macil
- Posts: 2529
- Joined: Mon Mar 22, 2004 7:00 pm
- Preferred Pronouns: He/Him
- Location: California, USA. Previously known as "Agent ME".
- Contact:
Re: GetPlayerInput not work in Multiplayer
ENTER scripts don't stop when the player dies. No RESPAWN script is needed for this.XutaWoo wrote:2. There's no similar RESPAWN script so that when the players die it no longer works.