OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started by: Ding on 21 Jul 2006, 12:27:20

Title: Help!, easy question
Post by: Ding on 21 Jul 2006, 12:27:20
Well im just getting into making MP missions, and well im a little confused over the whole local & Global command effects.

Well anyway what I was trying to do was make it so that when a player dies it blacks out and then blacks in once they have spawned, ive got all the spawning done correct. The problem I having is that it blacks out on all the players screens, how do I make it so that it only blacks out local to the Player which dies? I think its somthing to do with the publicvariable command but im unsure, thanks  :)
Title: Re: Help!, easy question
Post by: Mr.Peanut on 21 Jul 2006, 17:28:42
Code: [Select]
if (not local _unit) then {exit}or
Code: [Select]
if (not local _unit) then {goto "blah blah"}or
Code: [Select]
if (local _unit) then {goto "blah blah"}or
Code: [Select]
if (local _unit) then {blah blah blah blah}
See this thread (http://www.ofpec.com/forum/index.php?topic=27599.0) for a brief intro to MP issues. Check out the tutorials section (http://www.ofpec.com/ed_depot/tutes.htm) too. You'll find snYper's MP mission making tute there.
Title: Re: Help!, easy question
Post by: Ding on 21 Jul 2006, 20:11:02
That goes into the Condition right? Thanks I'll do a bit of testing
Title: Re: Help!, easy question
Post by: Mr.Peanut on 23 Jul 2006, 04:08:03
That goes into the Condition right? Thanks I'll do a bit of testing

Any luck? For more specific help, pls post what you have in your trigger fields.