We crown ourselves

Royal Para Regiment

Scripting help

More
4 years 7 months ago #1 by Winters
Scripting help was created by Winters
Hey

I need to debug some features on Brest Day mission and need a working solution to help me out with it.

Basically I need to have a collider/zone with script attached and when player me get inside script will execute a command to kill eniemies that are written in scipt:
Code:
Frame zx_ven3; FRM_FindFrame(zx_ven3, "zx_ven3"); Frame zx_ven4; FRM_FindFrame(zx_ven4, "zx_ven4"); Frame detect; FRM_FindFrame (detect,"detect_kill_all"); Whenever je(_PlayerInBox(detect)) { SendSignal (zx_ven3,0); SendSignal (zx_ven4,0); } SetWheneverTime(je, 20);

Any thoughts how to achieve that?
The following user(s) said Thank You: snowman

Please Log in or Create an account to join the conversation.

More
4 years 7 months ago #2 by Winters
Replied by Winters on topic Scripting help
From yesterday testing I found out some working scenario to hide/unhide for example enemy actor when in dummy box collider object

detect_test.scr attached to dummy actor on scene
Code:
{ Frame en_szkop; FRM_FindFrame(en_szkop, "en_szkop"); Frame detecttest; FRM_FindFrame (detecttest,"detect_test"); frame sound1; FRM_FindFrame(sound1,"comgo"); } Whenever inRange(_PlayerInBox(detecttest)) { SendSignal (en_szkop,1); FRM_SetOn (sound1,true); } Whenever notInRange(!_PlayerInBox(detecttest)) { SendSignal (en_szkop,2); FRM_SetOn (sound1,false); }

en_szkop.scr attached to enemy actor
Code:
{ frame me; FRM_GetMyFrame(me); FRM_SwitchFaceTexture(me, "e_f057"); } HUMAN_Suspend(0); HUMAN_SETMODE_Crouch(); SetWhenever(enemyNotInRange,0); Whenever enemyInRange(_SignalReceived(1)) { HUMAN_Suspend(1); SetWhenever(enemyNotInRange,1); } Whenever enemyNotInRange(_SignalReceived(2)) { HUMAN_Suspend(0); HUMAN_SETMODE_Stand(); SetWhenever(enemyInRange,1); } OnDeath() { EndScript(); goto end; } label end:

Logic here is working only once. When player enter box enemy actor disappear. When player leave box enemy actor shows up again.
The following user(s) said Thank You: snowman

Please Log in or Create an account to join the conversation.

  • Pozytywnefloow in 5 days
  • Zbyl in 5 days
  • Matheo in 6 days
Powered by Kunena Forum
The RPR Clan gaming community has long been known to fans of action battles and online battles. Fans of dynamic games gather here to share their experiences, participate in competitions, and enjoy the atmosphere of teamwork. Every evening, players from different countries can be found on the server, which makes the process even more interesting and unpredictable. Interestingly, gaming often intersects with other areas of entertainment. For example, in the world of casinos, special attention is paid not only to the thrill of gambling, but also to the design of the venues, where every detail creates a unique atmosphere. In this regard, it is worth paying attention to the article on how the world's most impressive casinos are created and what elements allow them to make such a strong impression on visitors — ahouseinthehills.com. The article reveals architectural solutions, gaming spaces, and aesthetic approaches that can surprise even those who are far from the gambling industry. Thus, both the esports community and the casino world share a common idea: to create a space where people can fully immerse themselves in the atmosphere, feel the thrill, and experience vivid emotions. RPR Clan gives this to its players through online battles, and the world's best casinos do so through their unique design and atmosphere.