Blockland Forums > Suggestions & Requests
Remote Turret
boodals 2:
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.
A Twig:
--- Quote from: Welknair on March 09, 2010, 08:33:16 PM ---I still have a problem... How do you get out of Vehicle Control, when using the events?
--- End quote ---
Make exitVehicleControl timed for a certain amount, or lastmsg variable.
Welknair:
--- Quote from: boodals 2 on May 02, 2010, 06:12:58 AM ----Snip-
--- End quote ---
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.
A Twig:
--- Quote from: Welknair on May 02, 2010, 11:40:33 AM ----Snipped-
--- End quote ---
:cookieMonster: I became useful for a first!
Welknair:
--- Quote from: A Twig on June 06, 2010, 07:56:15 AM --- :cookieMonster: I became useful for a first!
--- End quote ---
Wow, quite the bump.
--- Quote from: Welknair on May 02, 2010, 11:40:33 AM ---On your setup, how do you toggle the <var:player:firing>? A chat msg perhaps
--- End quote ---
Man, I was a noob back then... If the person is clicking, they're firing.