Please Log in or Create an account to join the conversation.
Stern wrote:
frame fence51; FRM_FIndFrame(fence51,"fence51"); Whenever CloseToFence (_PlayerInRange(2)) //check if player is close { MakeExplosion(fence51, 5760000, 100000); //make explosion SetWhenever(CloseToFence,1); //reset to be used again }
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
snowman wrote: Nik, you mean just like going over barbed wire, you get hurt more the longer you stay on it? This is a good idea!
Please Log in or Create an account to join the conversation.
Nikita wrote:
Is there a way to test the _PlayerInRange equipment ?
_MP_IsItemInTeamInventory
_ItemInRange
_FrameInRange
frame fence51; FRM_FIndFrame(fence51,"fence51");
Whenever CloseToFence ((_PlayerInRange(2)) and (_ItemInRange(62,4))) //item 62
{
MakeExplosion(fence51, 5760000, 100000);
SetWhenever(CloseToFence,1);
}
...
Label fenceactorstate:
Astate=(_Actor_GetState(fence51));
PrintfNumber("Fence51 ActorState: ", Astate);
Delay(5000);
goto fenceactorstate;
Label fenceactorstate:
PrintfNumber("Fence51 ActorState: ", _Actor_GetState(fence51));
Delay(5000);
goto fenceactorstate;
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.