[ACS] Temporary invicibility to applying to everyone as it should?
Posted: Sat May 06, 2017 5:08 pm
I'm currently making a script that makes the player temporarily invicible but unable to move just before a cutscene plays, and once the cutscene is done it disable these effects.
It works in single player but then i decided to try to make it work with bots and the cutscene works but the invicibility and froze effect is not applied to anyone when my goal is to make it work on every active players. Can you guys help?
It works in single player but then i decided to try to make it work with bots and the cutscene works but the invicibility and froze effect is not applied to anyone when my goal is to make it work on every active players. Can you guys help?
Code: Select all
script 5 (void)
{
SetActivator(0,AAPTR_NULL);
SetPlayerProperty(0,1,PROP_TOTALLYFROZEN);
SetActorProperty(0,APROP_Invulnerable,true);
ChangeCamera(18,0,0);
delay(35);
ACS_Execute(6, 0, 0, 0, 0);
*insert cutscene shit*
ChangeCamera(0,0,0);
SetActorProperty(0,APROP_Invulnerable,false);
SetPlayerProperty(0,0,PROP_TOTALLYFROZEN);
delay(1);