View Single Post
  #2  
Old 02-07-2018, 01:47 PM
Oscarmike247 is offline Oscarmike247
Oscarmike247's Avatar
Registered User

Join Date: Feb 2018
Posts: 259

Quick update... just thought of a way to trigger this using only "past(#)" and a variable.


Create a wac script to set v10 (or whatever you need) to -1.

Then use WAC script,

If past(5) and past(v10) and never() then
Ammo2ssn(grenadefb, 1800)
Endif

If past(5) allows enough time at the start of the map to set v10 to -1. Without this, the wac would immediately trigger the flashbang at the start of the map because all variables are 0 at the start. You could say use a premission event, but that won't work because the variable would still be set back to 0 at the start of the map.

When you are ready for the flashbang to be triggered, creat a wac script or med event containing the desired conditions to set v10 to 0. At which point the WAC will be true and emit the grenade.

This works without corrupting the WAC and the grenade will detonate without causing a sysdump.

Recap:

Create wac script:

If elapse(0) and never() then
Set(v10, -1)
Endif

If past(5) and past(v10) and never() then
Ammo2ssn(grenadefb, 1800)
Endif

If ssnarea (10000, 5) and never() then
Set(v10, 0)
Endif
Reply With Quote