Jump to content
🛡️FORUMS ARE IN READ-ONLY MODE Read more... ×
Sign in to follow this  
ZiRo

Syntax question

Recommended Posts

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">_friendsclosedead = ({_x distance _leadergroup < 100} count (list _sidetrigger))

How do i change that to get the amount of DEAD people within 100 that are in the list _sidetrigger?

-ZiRo

Share this post


Link to post
Share on other sites

Also how can i "add" to a variable.

for example

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">_side = (side _startleader)

How can i turn that into the side + the word trigger: so if the side was east it would be easttrigger or westtrigger or guertrigger etc.

I thought about

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">_sidetrigger = _side + trigger

but i wasnt sure and havent tested.

Thanks

ZiRo

Share this post


Link to post
Share on other sites
<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">_friendsclosedead = ({_x distance _leadergroup < 100} count (list _sidetrigger))

How do i change that to get the amount of DEAD people within 100 that are in the list _sidetrigger?

-ZiRo

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">_friendsclosedead = {_x distance _leadergroup < 100&&!(alive _x)} count (list _sidetrigger)

Share this post


Link to post
Share on other sites
Also how can i "add" to a variable.

for example

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">_side = (side _startleader)

How can i turn that into the side + the word trigger: so if the side was east it would be easttrigger or westtrigger or guertrigger etc.

I thought about

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">_sidetrigger = _side + trigger

but i wasnt sure and havent tested.

Thanks

ZiRo

_sidetrigger= format["%1trigger",_side]

or,

_sidetrigger= format["%1trigger",side _startleader]

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×