blakord 0 Posted July 19, 2007 Hi, i need a dinamic triggers changing several times during the MP mission, all param changes on the server are working nice, but I cant modify the trigger area, if I change it all clients get the trigger area as 0,0 Example triger name TriggTest, cond anybody present, repeat Init.sqf <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> TriggTest setPos [100,100,0]; TriggTest setTriggerArea[100,100,_ZDir,false]; //Here is forking fine for all clients with trigg area of 100 or any other number ?local server <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> While {true} do { _XArea = Round(3000 + Random 5000); _YArea = Round(3000 + Random 5000); _ZDir = Random 90; _XPos = Round(1000 + Random 1000); _YPos = Round(1000 + Random 1000); TriggTest setPos [_XPos,_YPos,0]; TriggTest setTriggerArea[_XArea,_YArea,_ZDir,false]; sleep 60; }; ?local player <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> While {true} do { Waituntil {vehicle player in list TriggTest}; Hint "Im on trigger"; Waituntil {NOT (vehicle player in list TriggTest)}; Hint "Im Out of trigger"; }; When I set a new area for the trigger playing the mission, is not working, the position psition and local marks pos and area are working nice but the traigger area is geting area set to 0 on all players clients but on the server player is working ok, using player setpos to position trigger this is activated with client, but making 1 steep is inmediatly out of trigger (area 0,0), if I comment the new area set of the script then the triger work fine on al clients but without dinamic area I also try with publicvariable for set the triger area on the server and the clients to, but dont work Any suggestions for me?? thanks Share this post Link to post Share on other sites
blakord 0 Posted July 21, 2007 hmm no ideas? maybe is impossible Share this post Link to post Share on other sites
kronzky 5 Posted July 23, 2007 You probably don't get an answer because this should've been asked in the "Mission Editing" forum. Moving... Share this post Link to post Share on other sites