Novahq.net Forum

Novahq.net Forum (https://novahq.net/forum/index.php)
-   Delta Force (https://novahq.net/forum/forumdisplay.php?f=101)
-   -   [DFX2] SP & COOP in the same map (https://novahq.net/forum/showthread.php?t=48018)

Guest001 12-11-2016 04:19 AM

SP & COOP in the same map
 
One way for SP & COOP to work in the same map is to determine the number of human players present with WAC script as follows

Example Extract:
if (humans == 1)
then set(v1,1)
endif

if (humans == 2)
then set(v1,2)
endif

if (humans == 3)
then set(v1,3)
endif

if (humans == 4)
then set(v1,4)
endif

if (humans == 5)
then set(v1,5)
endif

if (humans >= 6)
then set(v1,6)
endif

You can use elseif if you wish.

Other uses:


;COMPARE
;eq(#,#) true if #==#
;ne(#,#) true if #!=#
;lt(#,#) true if #<#
;gt(#,#) true if #>#
;le(#,#) true if #<=#
;ge(#,#) true if #>=#
;true(#) true if #!=0
;false(#) true if #==0

;MODIFY
;set(var,#) set var to #
;add(var,#) add # to var
;sub(var,#) subtract # from var, clamp at 0
;inc(var) add 1 to var
;dec(var) subtract 1 from var, clamp at 0

Paradise067 12-22-2016 10:57 PM

Thanks!

Guest001 02-07-2017 08:47 AM

Quote:

Originally Posted by Paradise067 (Post 386105)
Thanks!

You're welcome... Paradise067

If you make something - please upload it here... :nerd: :gj:


All times are GMT -5. The time now is 11:08 AM.

Powered by vBulletin®