HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

U.V M System

02-05-2005, 03:55 AM#1
grd
Hi I downloaded U.Vs movemt system from here

It is really good but I want to make it so that all 12 players can use this system to move their own unit. I've been messing around with it for ages but I can't get it to do this. it keeps making it so that all 12 players can move 1 unit.

Can someone download the map and see if they can do it!
02-05-2005, 04:29 AM#2
imwithsstupids
why wont the download link work. id like the help you but it says error when i open it. anyways. u needa do loops for each integer A 1-12 do actions. without the triggers i cant help you much. Just to be warned useing arrowkeys causes lots of lag with 3 players. so i could only imagine what 12 would be
02-05-2005, 04:50 AM#3
Ant
Arrowkeys are fine as long as you don't call the mvoement events every 0.1 seconds or something like that.

I think some arrow key resources to look at are the 3rd Person Movement thread (it's somewhere in the trigger rep.) and the almighty arrow key tutorial or something along those lines.

Anyway, arrow keys are rather simple. I'll just give you what to do in step.

1 - Detect arrow keys. Create an event for every player you want to detect arrow keys from and when he presses the arrow key, just maybe set booleanarray[player number of triggering player] = true. When he releases, set booleanarray[player number of triggering player] = false.

2 - Do movement. Then you move. The U.V. system is kind of difficult and not very good since it doesn't allow for turning on the move (the map in the 3rd person movement thread does that). You just simply do Pick every player matching condition (whatever you want) and if forward = true, left and right are false, (assuming u created forward as a boolean that is true when the forward key is pressed), you order him to move forward, if left or right are true, then you order him to move forward offset by a few degrees, and if forward is not true you order him to face another direction and stuff like that. It's quite simple, really.
02-05-2005, 09:33 AM#4
grd
Ant I found the map you where talking about, the move and turn thing is good, but V.S system would be more suited to my map because the 180 turn thingy and because you can turn when your not walking!

I'm making cs de_aztec so you need to be able to turn when your not walking or else you'll prob end up dead! but turning when your walking is a great feature could you put them both togeta?

If I was to post my map here would you be able to put in the movement script in?

I currently have the V.S script in but it only works for one unit :(
02-05-2005, 01:21 PM#5
Ant
Quote:
Originally Posted by grd
If I was to post my map here would you be able to put in the movement script in?

Yah it won't be any problem at all. It will be easy to get the turn back thing done too.
02-05-2005, 02:53 PM#6
grd
ok thank you very much!
02-05-2005, 05:22 PM#7
Ant
Okay.

You have to define ControlUnit[1] to ControlUnit[12] or whatever whoever you want at the start to set ur controlling unit.

Just adjust the angle and times yourself in the turning trigger if you need to tune the turning. Take note that it will be very difficult to do fine turning in multiplayer.

Also I locked the camera. It has to be locked or the camera goes all over with arrow key controls. However, this makes spells like the owl a bit difficult to use.