showpoly question
How come this npc does not show the poly
that I want it to draw? It looks right to me, and the item placement for the x and y check work. Ideally I want just a line to draw from the player then to go up till it hits an onwall or the top of the level. NPC Code: Any help would be appreciated! |
In the showpoly it needs {} type brackets instead of () ones.
NPC Code: |
Thanks! man I need a bigger screen ... those itty bitty changes in () and {} are getin hard to see
|
use && instead of ||, and I'd suggest doing the showpoly after finding the stopping point (you're only using one line anyway, so no need to draw it over and over)
|
newbie scripter question.
|| means or, correct while && means and? (my scripting abilities go...that far) |
Correct.
ten words ten words dfsgasdad |
to each their own but MY GOD THAT FORMATTING IS UGLY
|
Yeah I agree Jagen. Everyone has their own style though.
|
Quote:
|
You mean the formatting that I posted the code in?
I just used the style button that comes with Graal. Plus after programming for more than 20 years, I know what the code means however it looks on screen. In time you will probably develop that tendency also. |
Quote:
|
he's just refering to your
NPC Code: as opposed to the more popular NPC Code: among some other small things, I've gotten used to both over time, so it doesn't bother me (the added spaces from the forums do, however :pissed: ) |
Back in the mid to late 1990's when I was in college, the profs taught me that in programming, neat code included each bracket on its own line. This way you can draw boxes around printed sets of code and see if you are missing a bracket easier. To each his own, of course.
|
Do not use toweapons for weapon NPCs. Add weapons manually through NC, and use the serverside command 'addweapon weaponname' in some NPC to add the weapon to the player.
|
All times are GMT +2. The time now is 10:35 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.