Game Development Community

TGEA 1.8.1 Mac FOV questions

by Andrew13 · in Torque Game Engine Advanced · 03/22/2009 (7:04 pm) · 0 replies

I am working with FOV and doing "scope like " maskings ...

I know i can test and set $Pref::player::CurrentFOV and $Pref::player::DefaultFOV

I know i can setFOV().

But how do i test the actual FOV and not the $prefs value?

whats the correct syntax for testing two prefs values ?

something like this

if($Pref::player::CurrentFOV=$Pref::player::DefaultFOV)



Another question...

i have echo statements in my key bound function. for each "press and release" of the key it seems two movemap.bind events are being sent and received and triggering my function. Presumably these are "key down" and "key up" events.

The question is how to get my keybinds to respond only one or the other of the events and not both ?