Redscript
HomeGitHubDiscord
  • Home
  • Getting Started
    • Downloads
    • Setup for VSCode
    • Setup for JetBrains IDEs
    • How to start REDscripting
      • Step 1: Mod structure
      • Step 2: Finding the right class
  • Language
    • Intro
      • REDscript in 2 minutes
      • How to create a hook
        • Things to hook
    • Language Features
      • Intrinsics
      • Loops
      • Strings
      • Modules
      • Annotations
      • Conditional compilation
      • Configurable user hints
    • Built-in Types
    • Built-in Functions
      • Math
      • Random
      • Utilities
  • References and examples
    • Common Patterns
      • Safe downcasting
      • Class constructors
      • Hash maps
      • Heterogeneous array literals
      • Scriptable systems (singletons)
      • DelaySystem and DelayCallback
      • Generic callbacks
      • Persistence
    • Logging
    • UI Scripting
      • Logging Widget Trees
      • Popups
    • Vehicle system
    • Weapons
    • Codeware callbacks
      • Scriptables comparison
    • Libraries
    • Gameplay
      • Sleeping and Skipping Time
  • Help
    • Community
    • Troubleshooting
Powered by GitBook
On this page
  1. Getting Started
  2. How to start REDscripting

Step 1: Mod structure

Classes? Wrappers? What?

PreviousHow to start REDscriptingNextStep 2: Finding the right class

Last updated 1 year ago

Was this helpful?

CtrlK
  • Summary
  • Classes
  • Functions

Was this helpful?

Summary

Created: Apr 02 2024 by mana vortex Last documented edit: ??? by your name

This page will give you an overview about a redfile's structure and how to pick the right one for your use case.

Classes

In which cases do you need a class? When is it enough to just put functions at the root level?

This section should have a short example for a minimal class. If there are multiple options, they should go in their own section after Functions

Functions

Can you even define own functions out of a class? I sure don't know

if you don't need a class, it's enough to do stuff with functions at the root level of your file. When exactly is that?