Feature Creep / Destroy method

Author
Message
BiggMatt
3
Years of Service
User Offline
Joined: 21st Sep 2017
Location:
Posted: 27th Sep 2017 00:25
I am not sure the best language for game guru, but i would like to see an on_destroy method

You have _init runs once at start, _main runs, destroy would run once at the end. Im not sure if it would be per object and have to have a separate script in the properties, or if you could do something like this:

function myscript_init(e)

end

function myscript_main(e)


end

function myscript_destroy(e)


end
Pirate Myke
Forum Support
10
Years of Service
User Offline
Joined: 31st May 2010
Location: El Dorado, California
Posted: 27th Sep 2017 00:31 Edited at: 27th Sep 2017 00:33
This piece of code is used in the fantasy character scripts.


Destroy(e) can be used instead of onDeath, if this was not a character.
Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz, 2400 Mhz, 4 Core(s), 4 Logical Processor(s), 8gb RAM, Nvidia gtx660, Windows 7 Pro 64bit, Screen resolution 1680 x 1050.

BiggMatt
3
Years of Service
User Offline
Joined: 21st Sep 2017
Location:
Posted: 27th Sep 2017 00:59
Thanks
Belidos
3D Media Maker
5
Years of Service
User Offline
Joined: 23rd Nov 2015
Location: Hertfordshire
Posted: 27th Sep 2017 06:23
Yup, as myky said, we already have one, the _exit function

Primary Desktop:
i7 7700,k NV1070 8GB, 16GB 3200mhz memory, 1x 2TB Hybrid, Win10.

Secondary Desktop:
i5 4760k, NV960 2GB, 16GB 2333mhz memory, 1x 2TB Hybrid, Win10.

Laptop:
i3, Intel 4000 series graphics, 6GB memory, 1x 500gb HDD, Win8.1.

Login to post a reply

Server time is: 2021-04-15 05:08:21
Your offset time is: 2021-04-15 05:08:21