How can I detect type (car,plane,tank,helicopter...) of the player's vehicle :
In the com ref I found two commands :
- Typeof
- Counttype
AFAIK typeof returnes the classname of the object
Counttype count the object of a certain type "car, "plane"...
But how can use this in a chasescript. Every type needs a different kind of pursuit...
It goes like this :
_chaser = _this select 0
_chased = _this select 1
@_chased != vehicle _chased
#checktype
? vehicle _chased == ...."car" : goto "chasecar"
? vehicle _chased == ..."plane" goto "chaseplane"
...
I hope you understand...