• 0

    posted a message on Opionions of my 3rd person movement Controls?

    Trying to come up with a Control system for 4 players online that is the least lagy. This is still very early code, but what it does is it interacts with the timers to shut them off/on depending if the player is activly trying to move/aim in a direction.

    This way if a player is not moving, but is shooting, only the shooting portion of the code will track Cam Angle of player, while shuting off the movement timer.

    I realise my triggers are messed up per player base, just doing testing now

    Posted in: Miscellaneous Development
  • 0

    posted a message on Arrays or Presets??

    So when I set player select set variable to be PlayerNumber - 1 strangely enough it gives me an underflow error... so maybe its working afterall.

    GameInit Gamemode PlayerSelect

    Posted in: Miscellaneous Development
  • 0

    posted a message on Arrays or Presets??

    Well what im trying to do is just make it so Player chooses his unit Via Dialog, that unit he chose is tied to him and only him. So when i create W = on arrays i can also pull from which unit is doing it by the player number. I'm going to post an updated screen shot showing what i got going on right now.@Xackery: Go

    Posted in: Miscellaneous Development
  • 0

    posted a message on Arrays or Presets??

    Hmm, I dont think the array is working cause I set the trigger to go non stop so I can test it, and I can create way more units then just 4 which is what I have the array set to....@Helral: Go

    Posted in: Miscellaneous Development
  • 0

    posted a message on How do you stack units in-game

    lol join the club@ST4RKiLL3R: Go

    Posted in: Miscellaneous Development
  • 0

    posted a message on Arrays or Presets??

    Bump

    Posted in: Miscellaneous Development
  • 0

    posted a message on Arrays or Presets??

    Screen shots of what im doing... someone please help lol.

    StartingPlayerUnit

    Gamemode

    Posted in: Miscellaneous Development
  • 0

    posted a message on Arrays or Presets??

    bumpppp

    Posted in: Miscellaneous Development
  • 0

    posted a message on Arrays or Presets??

    Bump? anyone? Now im using records and my stuff picks the right unit but setting the player_units array to 1, and the record array to 1 still allows more than 1 to spawn....@Sumsin: Go

    Posted in: Miscellaneous Development
  • 0

    posted a message on Arrays or Presets??

    To be clear, cause I still cant get this... lol

    I got 4 players, I want each player to get 1 unit and this will be the only unit they will control the entire game, but not only that, it would I think make life easier for me. Such as being able to set constants or whatever to that array or when I issue orders I can pull the orders I want from that array(Issue order UnitArray4 move forward instead of issue order grunt1, issue order grunt2 etc) so Ill have set to an array.

    So I make a Global Variable PlaygetsUnit = No Unit <Unit[4]> but from Unit It wont let me pick my hero I want to set to the array, which this is the part that confuses me. I can get it from Unit Type, but then from my personal testing it doesent work for other things such as setting a traceline or whatever and I cant call from picked trigger or whatever.

    So if theres anyone that is out there that can list some really good ways to implant arrays, and maybe a few good examples/tutorials, ID apreciate it. This whole thing is starting to give me a headach.

    Posted in: Miscellaneous Development
  • 0

    posted a message on [Trigger] How to Target with Mouselook (Tracelines)

    Whenever I try to implant this and save I get

    Implicit cast not allowed line 106 lv_closestUnit != gv_player_Units &&

    and Syntax error line 110 gv_traceline_currentTarget[lp_player] = lv_closestUnit;

    player_Units is my array with 4 units, any ideas?@rrowland: Go

    Posted in: Tutorials
  • 0

    posted a message on Arrays or Presets??

    Well still cant figure out how to tie units to an array... anyone?

    Posted in: Miscellaneous Development
  • 0

    posted a message on Arrays or Presets??

    So the way im doing it, could be wrong so let me explain how im testing it now I created my Array which is Player_Units = PresettestUnit <Game Link - Unit[4]> This is type Unit Type Then I Made a Preset named PresettestUnit Valuetype Custom Script (Game Link) Then for my values I have "Grunt1" "Grunt2" "Grunt3" and "Grunt4" Does this sound right to you?

    Posted in: Miscellaneous Development
  • 0

    posted a message on Arrays or Presets??

    Alright thanks, ill give this a shot real quick and see how it turns out. ill post back with my results.@Honz: Go

    Posted in: Miscellaneous Development
  • 0

    posted a message on Arrays or Presets??

    Well the main reason why I want such a thing is for the traceline to properly work and also, because when I issue orders for move forward the way I am doing it now I have to make commands for all 4 players yet again so I link Grunt1 for player, Grunt2 for grunt 2 etc..

    The way I have it set up now though, is I created the 4 players units in the game right. So i got 4 units in the game for players 1 through 4. In my code I directly refer to those units I have set up in the game/data Editor and what im trying to do is hopefully do it by array and also not having to just place them in the map. Right now when I start my map I see all 4 units even if its just me playing by myself, which is something id also like to fix, so I could just say and StartLocation1 I want Player 1's chosen unit to spawn etc..@Honz: Go

    Posted in: Miscellaneous Development
  • To post a comment, please or register a new account.