How to make arrow keys strafe *agent paper* help

  • Thread starter Thread starter Deathshadow
  • Start date Start date
D

Deathshadow

Guest
Ok i have adgent papers arrow movemnt from free trigger codes. i wanna know how i can have my guy just slide left and right instead of turning and the runing. becuz i have 3rd person view and im doing my map off a first person shooter arcade game and i need it to strafe so i still see infront of me. understand?

lol alota words may confuse you :nuts:
 
You'd have to move the unit a tiny amount, in the direction you want it to go.
It would be something like 3 triggers. One would be one that when the arrow key is pressed, it turns on the trigger, the other one turns it off (when the player lets go of the key).

Code:
Events
      Every .25 seconds of game time
Condtions
Actions
      Move (Hero 0001) to (Region postitioned at (center of (Hero 0001))) offset by 25 ((facing postion) of (Hero 0001) offset by )90)

This would make it move left, while if you change the angle of 90 to -90 (i think), it would make it move right.
 
i couldnt figure out how to get that whole thing i was missing a few of the last things can u hive me step by step for that trigger? plz
 
the trigger that was posted is not gonna work. It will lag unbelievably.
Check in the free triggers post, there has been tons of questions like this so you could also search the forum.
 
w/e said:
the trigger that was posted is not gonna work. It will lag unbelievably.
Check in the free triggers post, there has been tons of questions like this so you could also search the forum.

Actually, it will work fine. I use a system quite similar to this in my map. When an arrow key is held down, your unit is moved in that direction every twenty-fifth of a second.

I was thinking of making a tutorial on the subject, but with school and working on my map I never got started.
 
I couldnt figure out how to get this long thing!!!
Move (Hero 0001) to (Region postitioned at (center of (Hero 0001))) offset by 25 ((facing postion) of (Hero 0001) offset by )90)

if/then/else?

wtf!! that isnt even move unit instantly or oder move unit???? what is it???? :banghead: :banghead: :banghead:
 
It's move unit instantly.

I starts out as move unit instantly to center of point.
Put the point/region as region positioned at center of unit with width, and height. Then you change it to polar offset.
 
k this right??

PHP:
Unit - Move (Triggering unit) instantly to (Center of (Region centered at (Position of (Triggering unit)) with size (0.00, 0.00))), facing ((Position of (Triggering unit)) offset by (25.00, 90.00))
 
Deathshadow said:
k this right??

PHP:
Unit - Move (Triggering unit) instantly to (Center of (Region centered at (Position of (Triggering unit)) with size (0.00, 0.00))), facing ((Position of (Triggering unit)) offset by (25.00, 90.00))

No, it should be 90 degrees/-90 Degrees, not how far it will move out. Also, it should be facing the angle of the hero. 3rd, it should not be triggering unit, because no unit triggered it. If the unit is already on the map, just select it. Otherwise, make the unit a variable, and use a variable in it's place.
Try this. I went in the editor myself, and figured it out.
Code:
Unit - Move (Hero 0001) instantly to ((Center of (Region centered at (Position of (Hero 0001)) with size (0.00, 0.00))) offset by 25.00 towards ((Facing of (Hero 0001)) - 90.00) degrees)
 
ok when u go into world editor copy the exact words it says not just basicaly wut it says becuz that isnt possible. right click it and hit copy as text.

heres closest i gt i mean im about to just give up.

PHP:
Unit - Move (Triggering unit) instantly to (Center of (Region centered at ((Position of (Triggering unit)) offset by (25.00, (Tan(90.00)))) with size ((Facing of (Triggering unit)), 0.00)))


since i clearly cant get this into my map u can do it lol heres my map.
 

Attachments

maerlyn said:
Actually, it will work fine. I use a system quite similar to this in my map. When an arrow key is held down, your unit is moved in that direction every twenty-fifth of a second.

I was thinking of making a tutorial on the subject, but with school and working on my map I never got started.

.25 is every fourth of a second, a twenty fifth of a second would be .04
 
Why do you do:
Code:
(Center of (Region centered at ((Position of (Triggering unit))))
and not just:
Code:
(Position of (Triggering unit))
? Also, if you do it like that, you may want to play the unit's "Walk" animation. And, if it is just side/scrolling, then why not just give the move order, to the far left, or the far right? BTW, there is a whole system like this in The Death Sheep ("~Warcraft III\Maps\Scenario\Death Sheep.wcm" or something like that), a map that comes with Warcraft III. The Death Sheep has all that stuff, and you might even be able to copy some of the triggers.
 
ok dude deathsheep is just make unit run to the side not slide there. my whole problem is the guy turning and im using 3rd person view for back. i dotn want it tunring when i go sideways!
 
maffgud said:
.25 is every fourth of a second, a twenty fifth of a second would be .04

Oops, looks like you got confused. The post that says every fourth of a second isn't mine.
 
Well seems this has gone to mush, and I can't get on WE for a it so here's what I can give you.
Code:
Move (Hero 0001) to (position of (Hero 0001) polar offset by (25) at ((Facing angle of (Hero 0001))[U]+[/U]90) degrees. (Instantly)
Have this run every .25 seconds, and have 2 more triggers to turn it on and off when needed.
 
Just add an if/then/else with a boolean condition, when you start strafing set it to true, check if its false then rotate the camera else dont rotate the camera... Then strafe can just be an order to move :)

EDIT - add it to the camera trigger..
 
No do NOT just put in a if/then else and let the trigger keep running the whole time, that really will lag the game. just have the other two triggers turn the third on and off as needed.
 
um ok.. did something similar in my boulder toss spell (not updated on my site) didnt lag at all :P
 
Deathshadow said:
ok when u go into world editor copy the exact words it says not just basicaly wut it says becuz that isnt possible. right click it and hit copy as text.

heres closest i gt i mean im about to just give up.

PHP:
Unit - Move (Triggering unit) instantly to (Center of (Region centered at ((Position of (Triggering unit)) offset by (25.00, (Tan(90.00)))) with size ((Facing of (Triggering unit)), 0.00)))


since i clearly cant get this into my map u can do it lol heres my map.

OK I COULDNT FIGURE OUT HOW TO GET IT ALL IN THERE CAN U SPEND LIKE 5 SECS ADDING IT?? HERES THE ATTACHMENT.
 

Attachments

General chit-chat
Help Users
  • No one is chatting at the moment.
  • Ghan Ghan:
    Probably inflates their numbers so they look better to advertisers.
  • The Helper The Helper:
    Yeah google does not filter those bots. I remember when Apex was doing Google ads I saw the same IPs in there as I was seeing here - google is totally tracking all those bots as traffic and most google traffic, at least ours, was all bots
  • The Helper The Helper:
    oh wow, i bet i can post x links now and do the webp pics now giggity
  • The Helper The Helper:
    ahh anubis blocks anyone that has javascript turned off
  • The Helper The Helper:
    Robot: HTTP client library - i love the new robot :)
  • The Helper The Helper:
    New Science News Forum and it starts out with 420 threads :)
  • The Helper The Helper:
    Technical Support forum name changed To Technology News, there is now a Tech, sci/tech and science forums now :)
  • The Helper The Helper:
    Happy Saturday! Hope everyone has a fantastic weekend!
  • Ghan Ghan:
    We are now on Ubuntu 24.04. Had some issues with the style after the OS/PHP upgrade but now resolved.
    +1
  • Ghan Ghan:
    PHP 8.3 now live
    +1
  • The Helper The Helper:
    Weekend went by too fast. Next weekend I am going to try to do a nature thing - buddy of mine lives by the Colorado river and has some kayaks and invited me to do some kayaking from a place he knows to get on the river.
  • Ghan Ghan:
    That sounds like an adventure.
  • The Helper The Helper:
    400 users all online all looking at latest content
  • The Helper The Helper:
    I wonder how all these bots that sit on the lastest content page get passed anubis or maybe they did not but they are just registering on whos online
  • The Helper The Helper:
    showing up on whos online not registration
  • Ghan Ghan:
    The first gate is stopping all the bots that don't execute javascript.
  • Ghan Ghan:
    That's the main thing with Anubis - no Javascript, no site. Typically you can still get the site to load without Javascript.
  • The Helper The Helper:
    I remember the whole javascript thing, question - how many real people disable that?
  • The Helper The Helper:
    Hell I guess I could go back on the stats to know that - we probably capture that and we know the before and after
  • Ghan Ghan:
    Real users can't really disable Javascript anymore these days.
  • Ghan Ghan:
    The internet is broken without it.
  • Ghan Ghan:
    Bot readable, not human usable.
  • The Helper The Helper:
    got it
  • The Helper The Helper:
    Happy Thursday!
  • The Helper The Helper:
    Check out the new Featured Content feature we apparently got with the forum software upgrade! https://www.thehelper.net/featured/

The Helper Discord

Members online

No members online now.

Affiliates

Hive Workshop NUON Dome World Editor Tutorials
Back
Top