I'm working on a general purpose weather mod for mappers. Loading the actor into your map allows you to choose from a number of placeable actors that are pre-configured such as: light rain, heavy rain, thunderstorm, etc.
At the higher levels it spawns an effects package that contains lights and thunder sounds controlled by a stochastic-type trigger. Even though the weather area is large by default (radius of 3072) it occurred to me that mappers might need to place more than one instance. To me it seemed the easiest way to go was to declare tag and events that properly matched. To keep those independent It seemed like a randomly generated string would work.
So to test I added this bit of code
function PostBeginPlay()
{
local LightningTrigger LT;
local string DL;
LT = Spawn(class'LightningTrigger', Self, , Location + vect (2,2,2),);
DL = Chr(Rand(254));
LT.Tag = DL;
}
but I get the error " Error, Type mismatch in '=' " for the last line.
Please bear in mind I work at a lower level than almost everyone here but I do love the problem-solving aspect of uscript. I really appreciate your guy's tolerance for my questions. Oh, and the lightning trigger is used with the original creator's blessing. The mod was done in early 2002 and the maker still responded to an email taken from the readme.
Author: Michael ' Sidewinder ' Geisinger
Copyright: Copyright ( c) 2002 by Michael Geisinger
That's by far my earliest reply and he was excited to here people still worked on this stuff. Thought you all might find this interesting.