RoT2_PRC8/_module/nss/ffx_fc_exit.nss
Jaysyn904 499aba4eb3 Initial upload
Initial upload
2023-09-25 18:13:22 -04:00

22 lines
441 B
Plaintext

//////
// Force Effects: Bounce
// Force Cage
// Created by Solias
// http://www.wnwn.net/
//
////
// ffx_fc_exit - Force Cage exit event
//
// exit event for a force cage
//
#include "ffx_inc"
void main() {
object player = GetExitingObject();
string group_tag = GetStringRight(GetTag(OBJECT_SELF), 2);
if(GetLocalInt(GetModule(), "ffx_group_active_" + group_tag) == 1) ffx_bounce_towards_point(player, "ffx_fc_center", 2.0);
}