Jump to content

Koning Julien

Member
  • Content Count

    1
  • Joined

  • Last visited

  • Medals

Community Reputation

0 Neutral

About Koning Julien

  • Rank
    Newbie

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Hi all, I'm trying to activate a layer through script. The layer is called "Layer2" in the editor and has Activation Type "ON_TRIGGER_ACTIVATION". I have a trigger that has an "OnActivate" script. In this script I would like to tell the game to activate "Layer2" (and subsequently all entities below it). I currently have this code: class Trigger1_Class: SCR_FactionControlTriggerEntity { override void OnActivate(IEntity ent) { SCR_HintManagerComponent.GetInstance().ShowCustomHint("Trigger fired", "Success", 15); //The hint pops up when the trigger fired, which proves the trigger is set up correctly IEntity nextLayer = GetGame().GetWorld().FindEntityByName("Layer2"); //The script gets Layer2; but now how do I activate it? } }; Any help is greatly appreciated!
×