OnPlayerKeyStateChange - buggy object
#4

I only meant for detecting the 'Y' key, that's why there are if-checks to prevent that. Also, I suppose you only want torpedos to be fired every "X" seconds, so then you can also limit it that way by using GetTickCount() or gettime() so it only gets called once when needed. Like it's done in "Grand Larceny" with class selection (changing cities).
Reply


Messages In This Thread
OnPlayerKeyStateChange - buggy object - by Kyance - 13.08.2014, 14:00
Re: OnPlayerKeyStateChange - buggy object - by Virtual1ty - 13.08.2014, 14:16
Re: OnPlayerKeyStateChange - buggy object - by Kyance - 13.08.2014, 14:57
Re: OnPlayerKeyStateChange - buggy object - by Virtual1ty - 13.08.2014, 14:59
Re: OnPlayerKeyStateChange - buggy object - by Kyance - 13.08.2014, 15:09
Re: OnPlayerKeyStateChange - buggy object - by Virtual1ty - 13.08.2014, 15:18
Re: OnPlayerKeyStateChange - buggy object - by Kyance - 13.08.2014, 15:22

Forum Jump:


Users browsing this thread: 1 Guest(s)