Jump to content
  • 0

Scripting wish.


MrEnzO

Question

First af all i want thanks all you guys who are making scripts to dayz, you guys is making this game fun to play.

Now with that said..... I (and I guess not just me) have a little wish.

When you make a script it would be nice with a explination behind the command, what the command does and a example of it, like this

I uses this cammand when I making map addons.

this setvectorup [0,0,1];

So it would be nice to see something like this

this setvectorup [0,0,1]; //This will make the object always point straight up. Move the number around for diffrent result.

It's just a small wish I have, I am not good at this scripting stuff, I'll do fine but that is all, I am a graphic guy. So for a dumb dumb like me i would be so much easier to understand the script.

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

Comments adds to read times and size of scripts, which bogs down the performance.. sorta... kinda..in theory

 

Wouldn't suggest doing this on large scripts tho, unless you know how to break your script into smaller chunks or functions (I did this with modular player_build that will be in upcoming patch, each line commented for educational purposes (total about 10 files/functions involved)).

 

So there's always a dilemma, k? K.

Link to comment
Share on other sites

  • 0

In a way I agree with Gagi2..... Understanding the code is a right of passage... A hurdle to separate those that can from those that barely can.

That being said, it IS quite difficult when trying to learn a new way of doing something to have no reference point to what you're looking at.  (the setvector for instance).   If I'm trying to throw something together and get it figured out, I generally find some code here or on open dayz that has a similar thought to what i'm working on, and then private message the author directly to ask questions.  It not only acknowledges them for being someone that knows what the hell they're doing, but also allows them to help you understand more then a comment possibly ever could. (assuming of course, you're not annoying, keep your questions to a productive minimum, and don't proceed to claim any of what they helped you with as being your own.)

(*In the kudo's bucket, Thanks to Raymix, Rimblock, and Zupa for helping steer my projects on the right path, whether you know it or not).

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...