User Tools

Site Tools


building:scripts

This is an old revision of the document!


Scripting Systems

Reusing Existing Scripts

Before making your own scripts, you should check that one does't already exist: you can re-use any script for any ERF that is flagged as accessible on Sinfar, even if you don't personally have access to this script. Just set their name in the field that they are meant to be used:


You can also call them from your own script:

void main()
{
    if (GetLocalInt(OBJECT_SELF, "USE_MAV_SYSTEM"))
    {
        ExecuteScrit(OBJECT_SELF, "mv_awesomesystem");
    }
    else
    {
        ExecuteScrit(OBJECT_SELF, "my_system");
    }
}
building/scripts.1552251002.txt.gz · Last modified: 2019/03/10 20:50 by Mavrixio

phpBB Appliance - Powered by TurnKey Linux