| Blockland Forums > Suggestions & Requests |
| VCE Variable Replacer suggestion: touch, activate, ... |
| (1/1) |
| Gen. Hothauser:
I just realized, unless these are already made and I just never used them, that there aren't variable replacers for checking the condition of a player action, such as Onactivate or onplayertouch. Here is a scenario. Player touching/not touching the brick. Uses Sub events because I can. --- Code: ---[0] [0] [Onplayertouch] [Self] [Dosub] [1 1] [1] [1000] [Onsub] [Self] [Dosub] [1 2] [2] [0] [Onsub] [Client] [Centerprint] [<var:pl:touch>] --- End code --- What happens here is that, when the person touches the brick, the value comes back to be 1. When the player stops touching the brick, it is displayed as 0. Same thing for activate or any other default input event. /discuss/make |
| tony-0222:
OnPlayerFirstTouch and OnPlayerStopTouching should make this possbile if im understanding right unless you mean like var:pl:touching or var:pl:clicking cuz those already come with default VCE events |
| froglover06:
I think there is a non-VCE addon for this on RTB. |
| CheeseDragon:
there is var:pl:firing but I'm not sure about touching |
| Navigation |
| Message Index |