Please login or register.

Login with username, password and session length
Advanced search  

News:

Forum rules - please read before posting, it can save you a lot of time.

Author Topic: query if an entity is named "ausgang_" + anything  (Read 3197 times)

0 Members and 1 Guest are viewing this topic.

Stucki

  • Frequent poster
  • ****
  • Karma: 0
  • Offline Offline
  • Posts: 325
  • I'm a llama!
    • View Profile
    • Schach-Welten
query if an entity is named "ausgang_" + anything
« on: March 14, 2008, 12:38:55 AM »

how can i ask if an entity name is ausgang*
so maybe ausgang_1
or ausgang_gfdhfd
etc.
i just want to find every entity that has "ausgang" at the geginning of its name, doesnt matter what comes after it ..

greets
stucki
 

metamorphium

  • Global Moderator
  • Addicted to WME forum
  • *
  • Karma: 12
  • Offline Offline
  • Gender: Male
  • Posts: 1511
  • Vampires!
    • View Profile
    • CBE  software s.r.o.
Re: query if an entity is named "ausgang_" + anything
« Reply #1 on: March 14, 2008, 12:46:19 AM »

var entName = new String(entitiyinquestion.Name);

if (entName.IndexOf("ausgang_") != -1) do_whatever_you_want_with_your_exit();



Logged
J.U.L.I.A. Enhanced Edition, Vampires!, J.U.L.I.A., J.U.L.I.A. Untold, Ghost in the Sheet

Stucki

  • Frequent poster
  • ****
  • Karma: 0
  • Offline Offline
  • Posts: 325
  • I'm a llama!
    • View Profile
    • Schach-Welten
Re: query if an entity is named "ausgang_" + anything
« Reply #2 on: March 14, 2008, 10:12:12 AM »

thanks very much !! got it to work

stucki
 

Page created in 0.066 seconds with 19 queries.