evildead9000
Member
I currently am working on a multi-player game, which has numerous special weapons.
Player one and two both function fine and can enable special weapons independently.
However, disabling a special weapon is not working correctly.
For example, when shield is activated, it will remain active while R1 is held. The issue is that my shield object is not "seeing" the controller variable for the R1 button of the player that enabled it and is disabling immediately.
In the Step Event of the player object I am running two scripts. The first one has all the double tap and special button presses as variables. The second is to activate my specials when certain variable combinations are pressed and implemented as a switch statement.
I'm thinking I have to move the main controller script into an object (possibly the special script as well). Afterwards, I can set it as a parent for the player and the special objects it instantiates.
Any guidance/suggestions/corrections would be much appreciated. Thanks!
Player one and two both function fine and can enable special weapons independently.
However, disabling a special weapon is not working correctly.
For example, when shield is activated, it will remain active while R1 is held. The issue is that my shield object is not "seeing" the controller variable for the R1 button of the player that enabled it and is disabling immediately.
In the Step Event of the player object I am running two scripts. The first one has all the double tap and special button presses as variables. The second is to activate my specials when certain variable combinations are pressed and implemented as a switch statement.
I'm thinking I have to move the main controller script into an object (possibly the special script as well). Afterwards, I can set it as a parent for the player and the special objects it instantiates.
Any guidance/suggestions/corrections would be much appreciated. Thanks!