Poll

Would this be useful?

Hell no.
2 (4.4%)
I don't need this.
1 (2.2%)
I don't care.
1 (2.2%)
Sure.
13 (28.9%)
Hell yes.
28 (62.2%)

Total Members Voted: 45

Author Topic: Remote Turret  (Read 1967 times)

besides, wouldn't it shoot at you into the wall?

That would pose a problem...

besides, wouldn't it shoot at you into the wall?
Teams then.

he wants it manned by a person :o
besides, wouldn't it shoot at you into the wall?
I am now 93% sure that mind readers exist...

I still have a problem... How do you get out of Vehicle Control, when using the events?

I was coming up with some ideas for a cool spaceship TDM and I thought of this thread. Any other ideas on how this could be accomplished? So far what we got is using onactivate events to do vehicle control and botevents to make it fire. Any way to get out of vehicle control once your in?

I was coming up with some ideas for a cool spaceship TDM and I thought of this thread. Any other ideas on how this could be accomplished? So far what we got is using onactivate events to do vehicle control and botevents to make it fire. Any way to get out of vehicle control once your in?

Right-click to exit.

Right-click to exit.
...


Doesn't do anything. I just looked at the original topic, and the only way to get out is with events. So with this the turret would have to deactivate after a set amount of time, then you'd have to reactivate it.



I'd like to see what events other people would use to accomplish a fully player-controlled turret that where the player is inside a ship and the gun is outside. How exactly would you go about this?


I was thinking a bot turret, and a event that practically makes you mount the turret, and L to unmount, this would make it much more simple.

I was thinking a bot turret, and a event that practically makes you mount the turret, and L to unmount, this would make it much more simple.
How would you get L to cause you to unmount?

On control panel:
0 OnActivate>NB_Turret1>SetVehicleAsPlayerControl

On a brick which the bot is touching:
0 OnBotTouch>Self>VCE_IfValue>"<var:player:firing>" "Equals" "1" "1 2"
1 OnVariableTrue>Self>SetEventEnabled>"5" "X"
2 OnVariableFalse>Self>SetEventEnabled>"5" "-"
3 OnBotTouch>Self>VCE_IfValue>"<var:player:jetting>" "Equals" "1" "4 4"
4 OnVariableTrue>Self>ExitVehicleControl
[Disabled] 5 OnBotTouch>Bot>SpawnProjectile>[BLAH]

Not sure if "<var:player:[Whatever]>" works though. It should, as Bots are classed as players in a way.

I still have a problem... How do you get out of Vehicle Control, when using the events?

Make exitVehicleControl timed for a certain amount, or lastmsg variable.

-Snip-

Wow, never would have thought of that one. I obviously have some stuff to learn about VCE. As for line 5, can't you have bot fire instead of spawn projectile? (These bots would be turrets of some kind, of course.)

On your setup, how do you toggle the <var:player:firing>? A chat msg perhaps (I just found out how to do that after investigating Twig's post.)

Other than that, that looks perfect.


:cookieMonster: I became useful for a first!
Wow, quite the bump.

On your setup, how do you toggle the <var:player:firing>? A chat msg perhaps
Man, I was a noob back then... If the person is clicking, they're firing.