-
13th October 2014, 17:16
#11
Perhaps you better tell us what errors you encountered. We can only guess what the problem is, whereas you actually know!
EDIT - OK, I can see straight away what the problem is - the code is being threaded from a map file, when in fact it needs to be a player. Asking the code to perform functions like getCurrentWeapon() can only be performed on a player - not a map.
So, the code needs to be moved inside a file like a gametype file. And run the threads from some point like onPlayerSpawned().
MODDING 101 - always thread code on the right entity. Otherwise, you will encounter a shit-load of errors.
Last edited by Tally; 13th October 2014 at 17:19.
-
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules