Scripts / Remove an object(s) by name

Author
Message
Nevin
8
Years of Service
User Offline
Joined: 19th May 2015
Location: U.S.A
Posted: 5th Apr 2019 09:32
Hello,

I know we can store object names like this:
g_object_name={}
init_name(e,name)
g_object_name=name

But how would I use that object name to destroy all of the objects with the same name?
I would think it would be Destory(name) , or Destory(e,name).
But does not seem to work.
AmenMoses
GameGuru Master
8
Years of Service
User Offline
Joined: 20th Feb 2016
Location: Portsmouth, England
Posted: 5th Apr 2019 12:44
Something like this but don't have the destroy code in a entity that might itself get destroyed!


Been there, done that, got all the T-Shirts!
PM
Pirate Myke
Forum Support
13
Years of Service
User Offline
Joined: 31st May 2010
Location: El Dorado, California
Posted: 5th Apr 2019 12:48
Moved to Script board.
RIP
Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz, 2400 Mhz, 4 Core(s), 4 Logical Processor(s), 8gb RAM, Nvidia gtx660, Windows 7 Pro 64bit, Screen resolution 1680 x 1050.

New:
Intel(R) Core(TM) i5-8400 CPU @ 2.81GHz, 12GB RAM, Nvidia gtx1050ti 4gb, Windows 10 Home 64bit, Screen resolution 1920 x 1080. System Passmark 3774




Login to post a reply

Server time is: 2024-04-19 19:58:53
Your offset time is: 2024-04-19 19:58:53