Page 1 of 1

Remove object from map

Posted: Sun Jun 05, 2005 10:56 am
by [NER-PT]Thanatos
Hi,

I have a map with 4 health bottles on it (item_25_healthbox), and they're giving me problems, because we want that map on a league... and those 4 bottles are not good, so I would like to remove them.

I've tryed this:

local.item_health_25 = spawn script_object
local.item_health_25 model "models/items/item_25_healthbox.tik"
local.item_health_25.origin = ( 1048.0 -2216.0 0.0 )
local.item_health_25.angles = (0 0 0)
local.item_health_25.scale = 1
local.item_health_25 remove


and this:

removeclass item_health_25

NONE of them worked....

I'm new to scripting... so can anyone help me?

Posted: Sun Jun 05, 2005 11:21 am
by Rookie One.pl

Code: Select all

removeclass Health

Posted: Sun Jun 05, 2005 12:51 pm
by [NER-PT]Thanatos
will that only remove the item_25_healthbox??

I don't want the item_50_healthbox removed....

Will try it!!!


THANKS

Posted: Sun Jun 05, 2005 1:25 pm
by Rookie One.pl
It will remove all the health packs there are in the map only once. Put this line on the very top of your script and that's it. Players will still drop healthpacks.

Posted: Sun Jun 05, 2005 3:28 pm
by Green Beret
To bad you didnt give them targetnames.