Liberty Unleashed

Scripting => Script Help => Topic started by: ARSEnic. on April 08, 2017, 12:49:44 pm

Title: Remove spawnclass
Post by: ARSEnic. on April 08, 2017, 12:49:44 pm (

There's a way to add spawnclasses via script but there dosent seem to be a way to remove them. .Remove() and .Delete() both dont work, is there a way to remove spawnclasses via scripts?


[7:01 PM] Ankris: foreach(idx, val in SpawnClass) { print(idx+" - "+val); }
[7:02 PM] Rhytz: SCRIPT: constructor - (function : 0x0xf55209c0)
SCRIPT: GetWeapon - (function : 0x0xf5520b58)
SCRIPT: AddWeapon - (function : 0x0xf5520d40)
SCRIPT: RemoveWeapon - (function : 0x0xf5520c50)
SCRIPT: GetWeaponAmmo - (function : 0x0xf5520bd8)
[7:03 PM] Ankris: then no
[7:03 PM] Ankris: not pussibulz
[7:03 PM] Ankris: unless u do some hax
[7:05 PM] Rhytz: thats lame

Since this feature dosen't currently exist hopefully it'll be added in the next lu version?(still waiting for it ;p)
Title: Re: Remove spawnclass
Post by: Mötley on April 09, 2017, 01:56:14 pm (

Code: [Select]
function onPlayerCommand( player, cmd, text )
if ( cmd == "setscreen" )
local screen;
if ( text ) screen = text.tointeger();
if ( screen ) p_SpawnClass.SpawnScreen = screen;

Maybe you could store the spawnscreen in a class. Whatever one you do not want just null it.

Or change the screen id over to a non used one and set the new one to be the current screen