Forum Jump :

Author Message


Posts: 1057
Rank:


Level: Member

Country: en
Location: 15 Bajo Valor Road, Everon, Sahrani.
Occupation: Air Training Corps, Airsoft + College.
Age: 26
In-game name: grimfist

 
#1 Posted at 2009-02-07 12:08        
     
you know in the lobby on some missions you can set the time and respawn etc?

well i want the admin to be able to choose if a sandstorm is on or not.


; ***************************************************
; Sand Storm Script 1.0 
; by Toadeater (toadeater@wolfenet.com)
; ***************************************************
; 
; Usage: Activate from the player's init line, or a script:
; [playername] exec "duster.sqs"
;
; If you want to use this script in a cutscene, attach it to a camera, otherwise
; the "sand" won't be seen from the camera's point of view.
; E.g. [camera1] exec "duster.sqs"
;
; Turn off by setting the "dustoff" variable to true via a trigger or script, etc.
; dustoff = true

how do i make the dustoff variable change?

ty.

maybee something like this?
titleParam1="Play Intro/Outro";
valuesParam1[]={1,2};
defvalueParam1=1;
textsParam1[]={"Play","Skip"};

all solved now:
Description:
titleParam1="Sandstorm On/Off";
valuesParam1[]={1,2};
defvalueParam1=1;
textsParam1[]={"disable sandstorm","sandstorm"};
Init:
if (Param1 == 1) then {dustoff =true} else {dustoff = false};

This post was edited by Grimfist (2009-02-07 16:52, ago)