| Blockland Forums > Help |
| How to make palyer shoot in direction palyers facing? |
| (1/2) > >> |
| Lugnut:
I got the idea from Zombies are people too!'s Tank. When you rightclick, the player launches forward. So i thoguht, I can mimick this. --- Code: ---onActivate>self>fireRelay onRelay>self>fireRelay onRelay>self>VCEIfValue><var:cl:jetting> = 1 ifVariableTrue>player>BLANK --- End code --- Thats what i have so far. What i wanna know, is what i put under BLANK to make the palyer launch in the direction s/he is facing. Thanks. |
| Kyzor:
What you're asking is impossible to do with events, as far as I know. The closest you could get to it is with the SetVelocity or AddVelocity output events, tweaking them so they work with the X, Y, and Z coordinates. (F.Y.I., the X, Y, and Z coordinates are the last three boxes in the SetVelocity and AddVelocity output events.) |
| Lugnut:
Dammat. I was really hoping to use this.. crap.. Wait.. why is this titled "Shoot"? |
| Lugnut:
So what if i posted a new topic in suggestions and requests? "Output Event:setPlayerForwardVelocity" Does that sound good? |
| Kyzor:
Try something more along the lines of the following: Output Event: movePlayer Then in the topic itself, say this (you can even copy and paste this if you want to): I had an idea for a new output event in which the player would move forward, backward, left, or right relative to the player and not to the X, Y, and Z coordinates with a new output event. So, to explain further, if the player is facing the door in the bedroom and activated a brick with onActivate-->Player-->movePlayer [Forward] [how far they move forward], they would be moved toward the door because they're facing it. |
| Navigation |
| Message Index |
| Next page |