The most simple example to give you on keycards are to look at "Trig_REDKeyDoorOpen1-00" in the Town level. It is the one to open Hammond's gate. See comments here:I'm working on the map but I gotta figure out how to add key cards and unlock movers. I've been getting a brain fart on this issue.
Note: "group Action03" has been added from "Trig_GRNKeyDoorOpen2-00" in LAB to add the keycard reader bar to flash.
Note: Make sure to import "PScrtyCrdRdrLGHT00t2.bmp-00" to your level (IT) in order for the change texture work. GeomAdd will still report missing texture on animated objects, but you can "fix" that by modifying the TPM and add them as materials to the specific object.string Class = "CCollisionTrigger"
string Element1 = "PCardSctyRED00-01" //This is the keycard
string Element2 = "PCrdRderRED00-01" //This is the object the keycard need to collide with (hit). In this case the keycard reader.
int AlphaChannel = 1
int BoundVol = 1 //Tells the game the trigger shape is square. Don't edit this in TresEd, it will crash the level during in-game loading.
float RepeatPeriod = 1.500000 //How often it can be repeated.
group Action00 = {
int ActionType = 10 //ActionType required to modify the "Target".
string Target = "P1HHmaindoorDOOR01-00" //Object to modify the script for.
bool Frozen = false //Unfreezes the door
}
group Action01 = {
int ActionType = 23 //ActionType to play SFX.
string Sample = "Spec-Keypad Confirmation02"//SFX to play
}
group Action02 = {
int ActionType = 23 //ActionType to play SFX.
string Sample = "Spec-Door Handle Open01" //SFX to play
}
group Action03 = {
int ActionType = 21 //ActionType to change texture.
string Target = "PCrdRder_Light0-01" //Object to change texture.
int Frame = 1 //Changes texture frame
float Interval = 0.500000 //"Delay in seconds between changing animated texture" (Tscript reference).
}
}
Hopefully this helped in some way.