Jump to content

Home

Opening Force Cage Script


harIII

Recommended Posts

Posted

Can somebody send me a simplified script of how to deactivate a Force Cage? I looked at the tutorial here on LF but it's not working. Thank you.

 

Never mind, got it to work.

Posted

Here you go,you'll need to add the invisible cageblocker if you don't want to be able to walk through the cage while active.

void main() {
object oMycage = GetObjectByTag("cagetag", 0);
object oMyCageBlocker = GetObjectByTag("MyCageBlocker", 0);
DestroyObject(oMyCageBlocker, 0.0, 0, 0.0, 0);
DelayCommand(0.5, AssignCommand(oMyCage, ActionPlayAnimation(202, 1.0, 0.0)));
}

Posted

Yep, that's my basic script that is now working except much longer. It involves 5 Force Cages and makes the prisoners inside run to 5 different locations and disappears.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...