make an own funktion and use it in other .gsc files
#1
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
Sorry for bad English Blush -> *GERMAN*
Reply

#2
if the function is in rank.gsc and you want to call it in another one just use:
Code:
maps\mp\gametypes\_rank::FunctionName();
(08-10-2011, 12:58)Pozzuh Wrote:
Se7en Wrote:Stealed, from cod4 mod ...
look who's talking

[Release] Old School Mod v2.2
[Release] Scroll menu

Reply

#3
[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.
YouTube 1:Azumikkel- Modding
YouTube 2:DerpShark- Gaming Entertainment
Website:Jensby.me
Contact: im[at]jensby.me
Reply

#4
Are we getting massages again? Sweet.
Reply

#5
(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?
Sorry for bad English Blush -> *GERMAN*
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  Help mod not reading .iwd files? hmann 4 6,050 10-13-2013, 20:14
Last Post: hmann
  Make area detect. flag Teleport lewisbibo 4 6,733 10-12-2013, 18:10
Last Post: EnVi Sweden Rocks
Wink Make Platforme lewisbibo 5 7,044 10-08-2013, 14:35
Last Post: 8q4s8
  Make obj MW3.by lewisbibo lewisbibo 3 5,000 10-05-2013, 20:16
Last Post: Nekochan
  Make obj MW3.by lewisbibo lewisbibo 0 3,290 10-03-2013, 20:19
Last Post: lewisbibo
  Help need help?how to make plugins code hXnarutoXone 12 11,744 09-01-2013, 18:30
Last Post: Bandarigoda123
  i need help with the sabs files duckywson 2 4,595 08-31-2013, 19:46
Last Post: duckywson
  .FF Files tugay12 1 5,702 08-14-2013, 17:11
Last Post: DidUknowiPwn
Question Help Upgrade my point system from files to Database, help? EnVi Sweden Rocks 11 12,219 08-03-2013, 23:31
Last Post: EnVi Sweden Rocks
  Help GSC Reading Files?! Howl3r 11 11,221 07-30-2013, 04:00
Last Post: DidUknowiPwn

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2026 Melroy van den Berg.