Author Topic: Mount Command  (Read 3273 times)

Hey look! Dglider made an add-on that's not a blatant ripoff of another add-on!  Woooo!
Or to be more accurate, I didn't just copy and paste from another script and edit a few values. :o


Anyhow this add-on basically just gives admins access to the .mountobject command from the console.
There are 5 different commands included here.  3 of which require the use of the /getid command.  Fancy I know.

/mountid mounterID mounteeID mountpoint
/mountp2id name mounteeID mountpoint
/mountid2p mounterID name mountpoint
/mountp2p name name mountpoint
/mountnb _name _name  mountpoint

The first one is for mounting two objects together.  Such as a tank turret on a stunt plane.

The second one is for a situation where you can't actually get in the vehicle.  Such as if you mounted the turret to point 0 on the stunt plane and wanted to actually get in and fly the stunt plane around.

The third one is for mounting objects onto you.  Such as a tank turret on your head.

The fourth is just cause it made sense to add it as well.

The fifth is just like the first, but using named vehicle spawns.


link: http://www.mediafire.com/?a9d10h08lcyspsr

Please note that to use any of the commands that require an ID you must point your faceparts at an object and type /getid to get the ID of that object.
Also please note that BL is a wonderful example of prime coding technique and most things can't be mounted onto each other.


Update 1.1

- shrunk the code a little
- made the attempt message white

Update 1.2

- added /mountnb command
« Last Edit: December 22, 2012, 12:55:12 AM by Dglider »

Oh wow this is cool for mounting players on other players.

Good thinking

I still want to see a boss battles where the boss has sentry turrets mounted to him.

No, it's not as easy as it sounds as the aiming of the sentries gets mixed up on excessive turning

Code: [Select]
if(!%client.isAdmin)
return;
%mountee2 = findclientbyname(%mountee);
%mounter2 = findclientbyname(%mounter);
if(!isObject(%mounter2.player))
return;
if(!isObject(%mountee2.player))
return;
%mountee2.player.mountobject(%mounter2.player, %mountpoint);
What
Code: [Select]
if(!%client.isAdmin || !isObject(%mounter2 = findclientbyname(%mounter).player) || !isObject(%mountee2 = findclientbyname(%mountee).player))
     return;
%mountee2.mountobject(%mounter2, %mountpoint);
Why does that simple function need so many lines asdf

There are 4 different commands included here.  3 of which require the use of the /getid command.  Fancy I know.
Not fancy. Lazy of you.

Oh wow this is cool for mounting players on other players.

Good thinking
Mounting players onto other players has been possible for years now, just use FFC or mount commands. But as for the vehicles part of this, that's cool, good job

Why does that simple function need so many lines asdf

Because I'm new to TorqueScript.  And coding in general.  Thanks though.  I'll use that method next time.  (Also might update the current mod with that.)

YES YES YES
also, if you can, please make it an event :C
http://forum.blockland.us/index.php?topic=184865.15
Lugnut tried to do the event and it was messed up. I don't use it.
http://forum.blockland.us/index.php?topic=193369.0

Actually this is kind of a rip-off because a long time ago some one made this add-on
and the command you use is /mount [Other User] [Mount Point]

Actually this is kind of a rip-off because a long time ago some one made this add-on
and the command you use is /mount [Other User] [Mount Point]
Only kind of though, this mounts players to players like that, but it also allows for mounting of vehicles together

Actually this is kind of a rip-off because a long time ago some one made this add-on
and the command you use is /mount [Other User] [Mount Point]
Fooly Fun Commands.

Updated it a little.

 - Modified the code as suggested by Blocki
 - Made the attempt text color white

It still works the same though, so no biggie if you don't update.

Figured out how to make it work using named bricks! :D

/mountnb _[name] _[name] mountpoint

You cannot mount a brick
...what

You cannot mount a brick
...what
No, it gets the object that belongs to that brick's id. Such as vehicles and their spawns.