Well, it seems that I need to learn: 1, handle the camera. 2, make new function and call it. 3, some thing about "displayAddEventHandler". Too complex.
OK, bros:
I want to create a sattelite view in my mission, and I try several hours but it just can't work. So need help, thx.
Now I can create a camera in the air, but I can't let the player move the camera. I use , but it tell me TYPE NOTHING, EXPECT BOOL. why? I unpack the UAV module in official files, I think that is similar to mine.
I unpack other's file (proving ground.utes, thx), found that somebody use such as but I don't know how to use "call" script.
I saw http://community.bistudio.com/wiki/U...Event_Handlers, but don't know where to put those long codes
Well, it seems that I need to learn: 1, handle the camera. 2, make new function and call it. 3, some thing about "displayAddEventHandler". Too complex.
THANKS
PS: coming from CN, sorry for my EN.
Hey dude. Be confident, nobody thinks your English is poor and you should be proud of being as a Chinese, don't you think so? Btw, do you have any ID in VME forum? lol.
Okay joking apart, just getting down to business, maybe here I can only answer you the second question.
If you wanna to call a function, you should pre-define your script by useing "compile preProcessfile" and "compile preprocessFileLineNumbers" before you start calling it. Each function can return a specific value you want but it relies on how you script it. The syntax is just the same as sqf syntax but you should bear it in your mind that never use "sleep" in your function because it may cause error. Different from normal sqf files, at the end of the function should be the place to indicate the value you wanna to calling without semicolon. It can be easier understood if you've some knowledge on how to scripting.
P.S. (How strange for two Chinese talk in English here, I prefer Chinese to English if the forum allows me to do that. lol)
Last edited by ffur2007slx2_5; Apr 4 2011 at 04:56.
-You will need to move the camera up to get a satellite view: shift + Q
-Then tilt down: Keyboard - Number pad - 2.
-Left click mouse to get camera position in clipboard.
-Alt+Tab to desktop and paste in Notepad or text editor of your choice.
To use your camera position - see my posts in the thread above. You can either create a camera script and run it during the mission or create an intro to run at the beginning of the mission.
Camera.sqs can let player control the camera directly? Thus, how can I forbid some functions (sattelite can't head up and head down)?? And the scripts in 5# seems can't control by player.
What's more, I real want to learn how to define the input (such as KeyDown), this is a useful function.
What's more, I real want to learn how to define the input (such as KeyDown), this is a useful function.
in init.sqf put this at bottom.
PHP Code:
// do like this and have a function in that file called MY_CAM_KEYDOWN_FNC and MY_CAM_KEYUP_FNC call compile preprocessFileLineNumbers "camera\cam_key_fnc.sqf";
//or in init. MY_CAM_KEYDOWN_FNC = { switch (_this) do { //Button 2 case 3: { titletext["I just pressed button 2. but i can do more here", "PLAIN"]; }; }; }; MY_CAM_KEYUP_FNC = { switch (_this) do { //Button 2 case 3: { titletext["I just relesed button 2. but i can do more here", "PLAIN"]; }; }; };
The purpose of the Riot Gaming Community is to provide a stable and adult gaming environment,
where people have fun playing together both public and private.
Riot is a Multinational community with members from many different countries.
Good behavior, good conduct and common sense is required.
@Dragon Zen: Well, I can tell you about my project of Satellite view. There´s a link on armaholic.com
Haha, thanks CHICAGO. I want to learn sattelite from you, and add you in my thankslist then.
I saw your SATCOM, but it is too complex. My need is simple now, I just want to know how to let player handle the camera. It seems the KeyDown function combines more than one sqf, so I can't learn it from others' scripts. I saw the wiki but don't understand it yet.