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 … 8 9 10 11 12 … 18 Next »
Functions working "on arguments " in starfall
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Linear Mode
Functions working "on arguments " in starfall
04-07-2016, 09:58 PM,
#1
pho Offline
once you go pho you never go back
***
Posts: 578
Threads: 82
Joined: Oct 2013
Functions working "on arguments " in starfall
I'm lost, im looking to make a custom function which works likes with e2, here you "apply" the function to something separated using ":"
for example:

with e2 i can do something like that using "This"
Code:
function number entity:belongsToPlayer(Player:entity) { if(This:owner() == Player){ return 1 } else{ return 0 } } print(Prop:belongsToPlayer(owner()))

but with starfall it seems much more complicated, someone told me about meta-tables, and someone said i should look for initherance.
help me pls
Website Find
Reply
« Next Oldest | Next Newest »


Messages In This Thread
Functions working "on arguments " in starfall - by pho - 04-07-2016, 09:58 PM
RE: Functions working "on arguments " in starfall - by TheOneAndOnlyTee - 05-07-2016, 01:15 AM
RE: Functions working "on arguments " in starfall - by Red The Blue Color - 05-07-2016, 02:06 AM
RE: Functions working "on arguments " in starfall - by pho - 05-07-2016, 11:09 AM
RE: Functions working "on arguments " in starfall - by Person8880 - 05-07-2016, 04:33 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.