Blockland Forums > Modification Help
Corp's Errors and questions thread. I need some coding help here!
Treynolds416:
Well what exactly is the problem?
For the spread thing, 'function' is missing an 'f'
Also, the last 'for' statement is missing a closing bracket
The Corporation:
--- Quote from: Treynolds416 on March 04, 2012, 04:38:55 PM ---Well what exactly is the problem?
For the spread thing, 'function' is missing an 'f'
Also, the last 'for' statement is missing a closing bracket
--- End quote ---
that's because I cut it out on accident
The real script has that.
But I'm still at lost as to how to fix this.
The Corporation:
I really hate to bump this, but this stuff has been bugging me for quite a while.
Nexus:
--- Quote from: The Corporation on March 04, 2012, 08:16:04 PM ---I really hate to bump this, but this stuff has been bugging me for quite a while.
--- End quote ---
You cannot force a player to zoom/change their FOV without a client mod I believe
You can use !iscrouched() silly or armor::ontrigger(%dtb, %pl, %slot, %x) detecting %slot == 3 and %x == 0
If you want to look at a weapon script that changes accuracy based on if the player is scoped or not, you can look at the Old School Rifle or something.
The Corporation:
--- Quote from: Nexus on March 05, 2012, 04:48:16 PM ---You cannot force a player to zoom/change their FOV without a client mod I believe
You can use !iscrouched() silly or armor::ontrigger(%dtb, %pl, %slot, %x) detecting %slot == 3 and %x == 0
If you want to look at a weapon script that changes accuracy based on if the player is scoped or not, you can look at the Old School Rifle or something.
--- End quote ---
Wait, wait, explain to me how is that when I put the weapon away, the FOV changes?
Obj.client.SetCameraFOV(90); ?