part_system_exists

Checks to see whether a particle system exists.

语法:

part_system_exists(ind);


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


返回: 布尔值


描述

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


例如:

if !part_system_exists(global.Sname)
   {
   global.Sname = part_system_create();
   }

the above code checks to see if the particle system referenced in the global variable exists and if it does not it is created.


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