Team Spartan Cookies & Milk Forums
  • Issue Tracker
  • Donations
  • Search
  • Member List
  • Help

Register

Team Spartan Cookies & Milk Forums Garry's Mod Starfall v
« Previous 1 … 13 14 15 16 17 18 Next »
LocInt's SF Help & Request Thread
Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Linear Mode
LocInt's SF Help & Request Thread
12-12-2014, 06:47 PM,
#11
Person8880 Offline
gpj.ecafllorT
*******
Posts: 2,407
Threads: 45
Joined: Sep 2013
RE: LocInt's SF Help & Request Thread
(11-12-2014, 11:41 PM)LocInt Wrote:
(11-12-2014, 11:28 PM)_BL4CKH4WK Wrote: Also this isn't lua syntax:
if target and pos != Vector( 0,0,0 ) then ... end
Use "~=" instead of "!=". The correct syntax is:
if target and pos ~= Vector( 0,0,0 ) then ... end

I know that was for wire but my opinion:

I don't really care if its deprecated to use "!=" because this is not real lua we write here. If person would rename all functions like in lua and add those useful lua functions which person call "cheaty" then I would start to write correct lua.
Lua's a language, not a library. There are no "functions like in lua".

The syntax only works because Garry made the stupid decision long ago to add C style operators to GMod, which has ended up in lots of people being very confused about what Lua's actual syntax is and getting lost in other Lua based games/software.

As for GMod's functions, to bind every single GMod function would take a long time, and would be pretty unmanageable. There's lots that I call "cheaty" because they would take Starfall from an in-game tool into something that controls the way the game works, which is beyond its scope.

Besides, the best work is done under constrained conditions as it forces creative thinking and solutions.
Find
Reply
« Next Oldest | Next Newest »


Messages In This Thread
LocInt's SF Help & Request Thread - by LocInt - 11-12-2014, 05:55 PM
RE: LocInt's SF Help & Request Thread - by Wirebuilder28 - 11-12-2014, 06:13 PM
RE: LocInt's SF Help & Request Thread - by LocInt - 11-12-2014, 06:41 PM
RE: LocInt's SF Help & Request Thread - by Person8880 - 11-12-2014, 07:21 PM
RE: LocInt's SF Help & Request Thread - by LocInt - 11-12-2014, 07:34 PM
RE: LocInt's SF Help & Request Thread - by Person8880 - 11-12-2014, 07:40 PM
RE: LocInt's SF Help & Request Thread - by LocInt - 11-12-2014, 07:41 PM
RE: LocInt's SF Help & Request Thread - by TheOneAndOnlyTee - 11-12-2014, 09:01 PM
RE: LocInt's SF Help & Request Thread - by Blackhawk - 11-12-2014, 11:28 PM
RE: LocInt's SF Help & Request Thread - by LocInt - 11-12-2014, 11:41 PM
RE: LocInt's SF Help & Request Thread - by Person8880 - 12-12-2014, 06:47 PM
RE: LocInt's SF Help & Request Thread - by SuperPlayer - 14-05-2015, 05:29 PM
RE: LocInt's SF Help & Request Thread - by LocInt - 14-05-2015, 06:04 PM
RE: LocInt's SF Help & Request Thread - by Person8880 - 14-05-2015, 06:06 PM
RE: LocInt's SF Help & Request Thread - by SuperPlayer - 14-05-2015, 06:24 PM
RE: LocInt's SF Help & Request Thread - by Salira - 16-05-2015, 05:46 PM

  • View a Printable Version
Forum Jump:


Users browsing this thread: 1 Guest(s)
Contact UsTeam Spartan Cookies & MilkReturn to TopLite (Archive) ModeMark all forums readRSS Syndication

Powered By MyBB, © 2002-2026 MyBB Group.