no targetname

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
shift9999
Private
Posts: 3
Joined: Tue Sep 28, 2004 9:02 pm
Contact:

no targetname

Post by shift9999 »

Is there a way to remove Entity's that have no targetname through scripting?
If not, is there a way to do it in radiant without a client having to have the file?

I just want to get them so i can pass a delete command to them.
lizardkid
Windows Zealot
Posts: 3672
Joined: Fri Mar 19, 2004 7:16 pm
Location: Helena MT

Post by lizardkid »

well, all entities have targetnames. most are like e1 e2 e3 something to that extent.

finding out the targetnames however would be a challenge.

you could of course spawn a trigger_multiple with setthreads and cnt 1 etc etc only affecting AI etc etc delete that AI when it spawn.
shift9999
Private
Posts: 3
Joined: Tue Sep 28, 2004 9:02 pm
Contact:

Post by shift9999 »

Could it have been lost in the conversion? i converted the bsp to map and fired up the radiant to find the targetnames. I found most of them i wanted but some entity's didn't have targetnames. I have only checked this on AI entity models. Since i don't do much mapping, mostly coding, i just grabbed the first mohaa bspconverter i could find.

It is the one made by: "Kenter Ro (Japnese Letters to English Letters)"

Taken from the copyright info
User avatar
bdbodger
Moderator
Posts: 2596
Joined: Tue Feb 25, 2003 7:34 am
Location: canada
Contact:

Post by bdbodger »

try removeclass for example removeclass actor for ai's or removeclass script_model etc
Image
Post Reply