Checks to see if a given particle type exists.



参数 描述
ind The index of the particle type to check for.

返回: 布尔值


With this function you can check to see if the given particle type indexed exists in the game or not. Note that if the variable being checked is an uninitialised variable (that a particle type would otherwise have its index assigned to) this will throw an error.


if !part_type_exists(global.p1)
   global.p1 = part_type_create();

The above code checks to see if the global variable "p1" stores the index of a particle type and if it does not it creates one.

上一页: Particle Types
下一页: part_type_create
© Copyright YoYo Games Ltd. 2018 All Rights Reserved