Functions Documentation
View Function Edit Function
Name objMatches
Syntax (objMatches obj source filter) -> True/Nil
Argument List obj: object to check against criteria
source: object to use as source in criteria
filter: criteria to match against
Returns Boolean: True or nil depending upon if the spaceobject matches
Category spaceobject
Description Used to check if an spaceobject matches with the criteria.
The source object is the one used as the base of the criteria
(objMatches (objGetTarget gPlayerShip) (objGetTarget gPlayerShip) "sE")

checks if the current target of the playership is a ship and an enemy (note, there are easier ways of doing this)
Comment For a list of criteria see the wiki: