Results 1 to 10 of 13

Thread: Need help for weapon wall

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #11
    Brigadier General
    Join Date
    Oct 2012
    Posts
    994
    Thanks
    20
    Thanked 588 Times in 388 Posts
    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
  •