View Issue Details

IDProjectCategoryView StatusLast Update
0003832The Dark ModScript/Defpublic24.08.2014 20:25
Reportertels Assigned To 
PrioritynormalSeverityfeatureReproducibilityN/A
Status closedResolutionno change required 
Product VersionTDM 2.02 
Summary0003832: script event for getType() missing
DescriptionThere is a script event isType(), which lets you compare an entity type to a given class like "idActor".

However, this only works if you can compare against a list of known types. To find out the actual spawnclass (type) of an entity is not really possible this way.


Anevent like "string getType()" which returns the classname as string would be very helpful.
TagsNo tags attached.

Activities

SteveL

SteveL

24.08.2014 19:40

reporter   ~0006890

Isn't this supported by getKey("classname") and getKey("spawnclass")?
tels

tels

24.08.2014 19:47

reporter   ~0006891

You are right - this never occured to me. A note should be added to the documentation of "isType()" along with an example and then this report can be closed. Sorry for the confusion.

Issue History

Date Modified Username Field Change
24.08.2014 19:15 tels New Issue
24.08.2014 19:40 SteveL Note Added: 0006890
24.08.2014 19:47 tels Note Added: 0006891
24.08.2014 20:25 tels Status new => closed
24.08.2014 20:25 tels Resolution open => no change required