[B1][ManiaScript] Arbitrary restrictions
Posted: 12 Jul 2012, 11:26
EDIT: Read my next post below for more information.
So I have a mostly-working gametype script set up that is basically Melee except with weapon changes using the 1, 2, and 3 keys (using cleverness with ManiaLinks and netread/netwrite variables). The only problem is, SetPlayerWeapon refuses to work on a player that's already spawned, instead throwing this error and halting the entire script:
Indeed, changing weapons before the player finishes spawning works just fine no matter how many times it's done, but as soon as the player gets "Go!" it stops working.
Is there any reason to have this restriction? Allowing gametype scripts to switch players' weapons at will could prove to be an interesting idea, but this pretty much stops it cold.
So I have a mostly-working gametype script set up that is basically Melee except with weapon changes using the 1, 2, and 3 keys (using cleverness with ManiaLinks and netread/netwrite variables). The only problem is, SetPlayerWeapon refuses to work on a player that's already spawned, instead throwing this error and halting the entire script:
Code: Select all
The procedure SetPlayerWeapon failed to complete :
Cannot change the default weapon of a spawned player
Is there any reason to have this restriction? Allowing gametype scripts to switch players' weapons at will could prove to be an interesting idea, but this pretty much stops it cold.