Jump to page content
English English   Polish Polish   Dutch Dutch   Russian Russian   German German   Hungarian Hungarian   Norwegian Norwegian   Swedish Swedish   Finnish Finnish   Romanian Romanian   Spanish Spanish   Portuguese Portuguese   Latvian Latvian  
Homepage
Home
Register
Login

Resources
Forum
Wiki
Servers

rssGravity gun (gravity_gun)

Category:script
Author(s):Devan_LT
Downloads:4312
Rate:You need to be logged in to vote
Rating:3.7 (18 Votes)
Description:
This script adds gravity gun mode in which the player can lift and push other players, peds and vehicles. Resource exports two server-side functions:

togglePlayerGravityGun(player,on):
player: Player who you are toggling the gravity gun for.
on: If true, enables gravity gun, if false, disables it.
Returns true if gravity gun mode was toggled, false otherwise.

isGravityGunEnabled(player):
player: Player who you are checking.
Returns true if gravity gun mode is on, false otherwise.

If you want to test it without scripting anything, download gravity gun toggler: http://community.mtasa.com/index.php?p=resources&s=det..mp;id=2549


Gravity gun mode is off when the player joins, so you must enable it.

How to use gravity gun: when gravity gun mode is enabled, select a weapon which you can aim. To lift/drop vehicles/peds/players, press fire while aiming. If you want to push elements away from you, press fire while holding push button (1 by default, can be changed in ggunc.lua). And don't expect it to be bug-free. It's not really reliable. I only upload it because there are people who want it :)

Video: http://www.youtube.com/watch?v=z-j1tgDDKRg
...

(more)

Download latest version | Report

Version history

Version Publish Date Changes
1.0.0 2011-07-19 20:49:31 First public release Download