15.08.2016, 12:57
Hey guys in my event system i have many maps and iam using Y_ini how i make if the event start it load the objects and when the event end it remove the objects
You make 2 functions, (E.g. StartEvent, and EndEvent) one of which places the objects, another that removes those objects. You then call the first one when the event starts, you call the second when the event finishes. At the top of the script you can use Код:
new EventObject[20]; When creating the objects you use Код:
EventObject[X]=CreateObject(bladebla) Then when you remove them you use Код:
DestroyObject(EventObject[X]); You can do both of these in for loops. The second will be simple to do as a for loop, the first will take some work and reading. |