ItsMods

Full Version: make an own funktion and use it in other .gsc files
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi.
Is it possible to make an funktion in mod (as Example:
PHP Code:
displaymassage()
{
self iprintlnbold("This is an Massage!!!");

)
to use this funktion in other .gsc files?
and too i want to know, is it posible to make an own .GSC File (like this_is_my_file.gsc)
and use funktions from it in standart .gsc files (like _rank.gsc). I Think i must include the data, but how?

Hpe you can help me Big Grin
if the function is in rank.gsc and you want to call it in another one just use:
Code:
maps\mp\gametypes\_rank::FunctionName();
[Image: 30e51b63.png]

hilarious.


Ontopic:
Yes you can do both.

To call a single thread from another file:
entity thread folderlocation\file::threadname(arguments);
example:
self thread maps\mp\gametypes\_rank::giveGodSpeedHackAimbotWHtriplexXxSSnipezQuickFuzzyxCxXx( "massage" );

You can also include another file, but I don't think I can explain that without you misunderstanding.
Are we getting massages again? Sweet.
(10-30-2011, 22:51)AZUMIKKEL Wrote: [ -> ][Image: 30e51b63.png]

hilarious.


Ontopic:
Yes you can do both.

To call a single thread from another file:
entity thread folderlocation\file::threadname(arguments);
example:
self thread maps\mp\gametypes\_rank::giveGodSpeedHackAimbotWHtriplexXxSSnipezQuickFuzzyxCxXx( "massage" );

You can also include another file, but I don't think I can explain that without you misunderstanding.

I hope it was a relaxing massage Wink

Sorry for Noob-Question, but what do you mean with arguments?
Do you mean Variables?
Or if not, how can i define an argument? Like an Variable?