Author Topic: Which addon uses OnInput  (Read 1527 times)

Well, i am trying to get oninput but its not showing up, but... i have VCE on, pictures:

What they meant by OnInput is that Input is represented by... an input.

Activate can be an input.
Relay can be an input.

Piece it together.


god damit, it took you long enough to figure that out, from me telling you with everybody else

onactviate>Beta>SetPlayerControl
onactvivate>self>VCE_Ifvariable><var:cl>lastmsg> == Out
onvariabletrue>self>exitplayercontrol
fails

onactviate>Beta>SetPlayerControl
onactvivate>self>VCE_Ifvariable><var:cl>lastmsg> == Out
onvariabletrue>self>exitplayercontrol
fails

That's because when you activate it you control the vehicle. But it also checks to see if you said 'Out' as your last message when clicking it to kick you out of the vehicle. You would need a relay to make that work.



<var:cl:lastmsg> damit... not <var:cl>lastmsg>
and what does "Beta" target?

you mean onvariabletrue>namedbrick[beta]>exitvehicle ? Its an AI player (Standard bot!)

oh, named brick, not "Beta"


well, it's more common to say named brick as that is a real target, while beta is an option of it
/do'h

onactviate>Beta>SetPlayerControl
onactvivate>self>VCE_Ifvariable><var:cl>lastmsg> == Out
onvariabletrue>self>exitplayercontrol
fails
That's because when you activate it you control the vehicle. But it also checks to see if you said 'Out' as your last message when clicking it to kick you out of the vehicle. You would need a relay to make that work.


Code: [Select]
[0] [0] onActivate -> namedBrick(Beta) -> setPlayerControl
[1] [0] onActivate -> self -> fireRelay
[2] [0] onActivate -> self -> setEventEnabled [0 1 2 3] [unchecked]
[3] [0] onActivate -> client -> chatMsg -> You are controlling a vehicle! Say 'Out' aloud to exit!
[4] [0] onRelay -> self -> fireRelay
[5] [0] onRelay -> self -> ifValue -> <var:cl:lastMsg> -> equals -> Out
[6] [0] onVariableTrue -> self -> cancelEvents
[7] [0] onVariableTrue -> self -> setEventEnabled [0 1 2 3] [checked]
[8] [0] onVariableTrue -> client -> chatMsg -> You exit the vehicle!
[9] [0] onVariableTrue -> --- I don't remember the outputs for leaving the vehicle. You shouldn't have a extremely hard time finding them. ---

If there are any problems with this, add in a picture of your events for the brick that makes the player control the 'Beta's vehicle.