Includes
#1

Well, I decided to make a include for something. My two questions are:
  1. Are includes scripted the same way as filterscripts. If not, can someone explain how.
  2. I got some textdraws, that I want to put within the include. Where should I put them? Under public OnGameModInit()?
Reply
#2

Include is a script which makes the scripting easier. It's same with scripting gamemode/filterscript. You can bind it to your script.

Imagine you have a stock function which returns the player name. You want use this on your filterscript and gamemode.
In this moment you can have a private include script (bluebaron.inc) to copy the script there.

Then you can include the file into your script and use the stock function.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)