+ Reply to Thread
Results 1 to 3 of 3

Thread: functions

  1. #1
    Wirererer bobthe2lol is on a distinguished road bobthe2lol's Avatar
    Join Date
    Aug 2007
    Location
    US,NY
    Posts
    309

    Default functions

    Is there some way to make a sort of

    function func(a,b,c)
    d = a+b+c
    end
    func(1,2,3)

    Like in lua, a function with arguments and stuff. Espetially if its callable. Like im doing a chat command'd bot thing, and i want:

    if owner says Mouse then mouse(owner():aimPos())
    and your calling mouse with the arg of the owners aimpos. I think you get what im trying to say.

  2. #2
    Wirererer Riddler is on a distinguished road Riddler's Avatar
    Join Date
    Nov 2007
    Location
    /dev/null
    Posts
    203

    Default Re: functions

    No, its not possable E2 wasent designed for that sort of thing.

    You will just half to make a fucntion check if Mouse has a value if it does, run.

  3. #3
    Wirererer bobthe2lol is on a distinguished road bobthe2lol's Avatar
    Join Date
    Aug 2007
    Location
    US,NY
    Posts
    309

    Default Re: functions

    ok thanks.

+ Reply to Thread

Similar Threads

  1. [E2] Skin Functions
    By Rybec in forum Wiremod Lua Coding
    Replies: 9
    Last Post: 06-07-2009, 08:11 PM
  2. E2 - CJ's functions
    By [FX]CJ[CrS] in forum Wiremod Addons
    Replies: 5
    Last Post: 04-22-2009, 11:36 AM
  3. E-2 some functions.
    By Whodunnit in forum Ideas & Suggestions
    Replies: 12
    Last Post: 03-11-2009, 04:31 AM
  4. E2: Few new functions
    By d3cr1pt0r in forum Wiremod Lua Coding
    Replies: 24
    Last Post: 02-22-2009, 09:17 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
proceed-collector
proceed-collector
proceed-collector
proceed-collector
linguistic-parrots
linguistic-parrots
linguistic-parrots
linguistic-parrots