Remove object from map

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
[NER-PT]Thanatos
Private
Posts: 3
Joined: Sun Jun 05, 2005 10:48 am

Remove object from map

Post 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?
Rookie One.pl
Site Admin
Posts: 2752
Joined: Fri Jan 31, 2003 7:49 pm
Location: Nowa Wies Tworoska, Poland
Contact:

Post by Rookie One.pl »

Code: Select all

removeclass Health
Admin
Image
Image
Honour guide me.

here's my stuff - inequation.org | here's where I work - thefarm51.com
[NER-PT]Thanatos
Private
Posts: 3
Joined: Sun Jun 05, 2005 10:48 am

Post 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
Rookie One.pl
Site Admin
Posts: 2752
Joined: Fri Jan 31, 2003 7:49 pm
Location: Nowa Wies Tworoska, Poland
Contact:

Post 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.
Admin
Image
Image
Honour guide me.

here's my stuff - inequation.org | here's where I work - thefarm51.com
Green Beret
Major General
Posts: 746
Joined: Mon Apr 19, 2004 12:21 pm
Contact:

Post by Green Beret »

To bad you didnt give them targetnames.
Image
Post Reply