when i try to build the light, with the lightning bolt, radiant crashes, also crashes when i try to build it from the launcher. Why this happen to me??
so when i turn the power on the game freezes and then says "connection interupted". this only happens with 1 map, i have created other map and power works fine. Any help?
You won't be able to do anything special inside radiant. The way all triggers work is they are included inside scripts.
Here is an example:
Code Snippet
Plaintext
function init() // Initialization variable, call this in your mapname.gsc to start the script. { // Do whatever you would need to do here, not required for this. thread GetTrigger(); // Calls the function while threading it so multiple functions can be executed at the same time. }
function GetTrigger() // Function where all code for what you are currently doing is called. { trigger = GetEnt("triggertargetname", "targetname") // Replace "triggertargetname" with whatever you put in the targetname kvp in radiant.
// You would want a while loop here if you want the trigger to be able to be activated more than once.
trigger waittill("trigger", player); // Waits for the trigger to be activated, player isn't needed but is useful. ModVar("timescale", 0.5); // Sets the timescale to 0.5 }