How much wood can a wood chuck, chuck? (Tree cutting script)
#3

Oh my god, how can you code like that?! Learn to indent and use spacing!

Show your IsPlayerNearObject function. I have a feeling it takes an object ID not a model ID. Also, wouldn't a chainsaw make more sense than a knife?

Also, you should use defines like WEAPON_KNIFE instead of '4', so when you come back to that code in 3 years you can understand it. I mean, you probably still would, but it helps.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)