Files

> > CS2D > Lua Scripts > function reqcld2 - by callback
Files overviewCS2D overviewLua Scripts overview

English function reqcld2 - by callback >

11 comments498 b, 434 Downloads

old function reqcld2 - by callback

EnderCrypt
User Off Offline

reqcld2
is a new function, it works similary to cs2d's native reqcld
hower, with reqcld2 you wont need to have a clientdata hook!, infact, this reqcld operates by using callback, here is 2 examples

example 1:
Spoiler >


example 2:
Spoiler >



reqcld2(id,mode,function[,parameter])

([] means its an optional argument)

the function can either be a named function or an anonymous function (as seen in the above example)

the function (anonomous) should look like this (talking about arguments)
1
2
3
function(id,x,y[,parameter])

end

again parameter is optional

the use of parameter, is sending in external data to the functions, as reqcld isn't instant

theres obviously no point in providing an image, as this is simply a function
edited 1×, last 01.03.14 09:07:28 am
Approved by Yates

Download Download

498 b, 434 Downloads

Comments

11 comments
To the start Previous 1 Next To the start

Log in!

You need to log in to be able to write comments!Log in

old

Gaios
Reviewer Off Offline

Nice framework
I like it!

old

EnderCrypt
User Off Offline

@AlcatrazZ

ahh.. ops.. im so sry, haha, accidently added wrong file.. i been working alot recently
ill fix it

edit:
fixed it, downloaded and checked, all seems to be in order
thank you for telling

old

AlcatrazZ
BANNED Off Offline

Where is your fu*king script file?
I only can see a addhook2.lua

old

EnderCrypt
User Off Offline

@VADemon
ops, my fault, ytue what sakslayer said, the command is available in my miscFunctions lua, i will edit this lua to work whitout it :), should be fixed

old

_Yank
User Off Offline

@user VADemon: He uses a library which features lots of useful commands. He problably forget to put it on the file.

I didnt downloaded it yet but seems very interesting through.
I like it!

old

VADemon
User Off Offline

1
misc.rgb(255,0,0)
?

old

TopNotch
User Off Offline

Good job.
I like it!

old

UnkN
User Off Offline

Good idea.
I like it!

old

EnderCrypt
User Off Offline

@MikuAuahDark

thank you
To the start Previous 1 Next To the start