Forum Jump :

Author Message

Curry  



Posts: 2
Rank:


Level: Member

Country: se
Location:
Occupation: Programmer
Age: 26
In-game name:

 
#1 Posted at 2010-09-17 13:23        
     
Description:
Simple and lightweight script for giving the players in your mission the ability to change viewdistance on the fly.

Readme:
How to install:

1. Copy the 'vdg' folder into your mission folder.

2. In description.ext add this line:
#include "vdg\vdg.cpp"

3. In init.sqf add this:
#include "vdg\VDG_init.sqf"
or this:
[] execVM "vdg\VDG_init.sqf"

Notes:
The VDG does not automatically work with vehicles. To be able to change viewdistance from within a vehicle use:
vehicle call VDG_addAction;

The option to open the dialog can be enabled/disabled at anytime using:
VDG_showAction = true/false;

No features and functions will be available before the variable VDG_initDone is true.



Link:
http://www.mediafire.com/?ntl8ldbq0qa66c4

Added 6 minutes later:

Updated download link with working version :-| .
Also some screens:


This post was edited by Curry (2010-09-17 13:35, ago)


Author Message


Posts: 35
Rank:


Level: Member

Country: au
Location: Adelaide
Occupation: IT Support for HP
Age: 36
In-game name:

 
#2 Posted at 2010-09-17 13:52        
     
Nice work very simple

so simple i cant work it out =-O
could be because its late, *TIRED* are you able to provide a sample mission?


Advertisement


Author Message


Posts: 20251
Rank:


Level: Super Admin

Country: nl
Location: The Netherlands
Occupation:
Age: 41
In-game name: Foxhound

 
#3 Posted at 2010-09-17 15:52        
     
Thanks for posting the release here, news on the frontpage and you can find our mirror here:



Visit my family webshop desteigerhoutshop.nl.

Author Message


Posts: 9
Rank:


Level: Member

Country: de
Location:
Occupation:
Age:
In-game name:

 
#4 Posted at 2010-09-19 01:11        
     
nice script and its working very good but where do i have to put this ?: vehicle call VDG_addAction;


Author Message


Posts: 15
Rank:


Level: Member

Country: dk
Location: Camp Blanik
Occupation:
Age:
In-game name: Baago

 
#5 Posted at 2010-11-22 07:34        
     
in the Init field on the vehicles :-)
Great script, works fine!


Author Message


Posts: 7
Rank:


Level: Member

Country: ar
Location:
Occupation:
Age:
In-game name:

 
#6 Posted at 2012-05-01 18:42        
     
Just one question. I'm trying to implement this into a MP mission with respawn. What code should I run when the player is killed?

As it is now, the Viewdistance action disappears upon playerkilled and respawn.