Poll | | What game does everyone play now? | Starcraft 2 | | 26% | [ 8 ] | Warcraft 3 | | 35% | [ 11 ] | League of Legends | | 19% | [ 6 ] | World of Warcraft | | 0% | [ 0 ] | Diablo 2 | | 0% | [ 0 ] | No games at all | | 10% | [ 3 ] | Other game not listed | | 10% | [ 3 ] |
| Total Votes : 31 |
|
|
| Start Point Spawn Need Help | |
| | Author | Message |
---|
BonoMania Recruit
| Subject: Start Point Spawn Need Help Sun Dec 30, 2012 7:34 am | |
| Every time in my maze when i want to spawn a random point, its ALLWAYS the same point i spawn... I'm checking it every day to try to fix it, but my trigger says "a Random point in_region_001" im using GUI pls help | |
| | | Serenity09 Moderator
| Subject: Re: Start Point Spawn Need Help Mon Dec 31, 2012 8:55 am | |
| you need to post your trigger right click on the trigger and hit copy as text then post it here | |
| | | BonoMania Recruit
| Subject: Re: Start Point Spawn Need Help Tue Jan 01, 2013 12:04 am | |
| function Trig_Spawn_Actions takes nothing returns nothing call CreateNUnitsAtLoc( 1, 'Edem', Player(0), GetRandomLocInRect(gg_rct_Region_000), 90.00 ) set udg_Players[0] = GetLastCreatedUnit() call CreateNUnitsAtLoc( 1, 'Edem', Player(1), GetRandomLocInRect(gg_rct_Region_000), 90.00 ) set udg_Players[1] = GetLastCreatedUnit() call CreateNUnitsAtLoc( 1, 'Edem', Player(2), GetRandomLocInRect(gg_rct_Region_000), 90.00 ) set udg_Players[2] = GetLastCreatedUnit() call CreateNUnitsAtLoc( 1, 'Edem', Player(3), GetRandomLocInRect(gg_rct_Region_000), 90.00 ) set udg_Players[3] = GetLastCreatedUnit() call CreateNUnitsAtLoc( 1, 'Edem', Player(4), GetRandomLocInRect(gg_rct_Region_000), 90.00 ) set udg_Players[4] = GetLastCreatedUnit() call CreateNUnitsAtLoc( 1, 'Edem', Player(5), GetRandomLocInRect(gg_rct_Region_000), 90.00 ) set udg_Players[5] = GetLastCreatedUnit() call CreateNUnitsAtLoc( 1, 'Edem', Player(6), GetRandomLocInRect(gg_rct_Region_000), 90.00 ) set udg_Players[6] = GetLastCreatedUnit() call CreateNUnitsAtLoc( 1, 'Edem', Player(7), GetRandomLocInRect(gg_rct_Region_000), 90.00 ) set udg_Players[7] = GetLastCreatedUnit() endfunction
//=========================================================================== function InitTrig_Spawn takes nothing returns nothing set gg_trg_Spawn = CreateTrigger( ) call TriggerRegisterTimerEventSingle( gg_trg_Spawn, 0.01 ) call TriggerAddAction( gg_trg_Spawn, function Trig_Spawn_Actions ) endfunction
| |
| | | Serenity09 Moderator
| Subject: Re: Start Point Spawn Need Help Mon Jan 07, 2013 7:45 pm | |
| replace the entire contents of your Spawn trigger with this: - Code:
-
function Trig_Spawn_Actions takes nothing returns nothing local integer i = 0 loop exitwhen i > 7 set udg_Players[i] = CreateUnit(Player(i), 'Edem', GetRandomReal(GetRectMinX(gg_rct_Rect_000), GetRectMaxX(gg_rct_Rect_000)), GetRandomReal(GetRectMinY(gg_rct_Rect_000), GetRectMaxY(gg_rct_Rect_000)), 90) set i = i + 1 endloop endfunction
//=========================================================================== function InitTrig_Spawn takes nothing returns nothing set gg_trg_Spawn = CreateTrigger( ) call TriggerRegisterTimerEvent( gg_trg_Spawn, 0.01, false) call TriggerAddAction( gg_trg_Spawn, function Trig_Spawn_Actions ) endfunction
1000!!! | |
| | | BonoMania Recruit
| Subject: Re: Start Point Spawn Need Help Tue Jan 08, 2013 1:55 pm | |
| ty, but what do you mean with - Spoiler:
1000!!! ? | |
| | | Serenity09 Moderator
| Subject: Re: Start Point Spawn Need Help Tue Jan 08, 2013 3:45 pm | |
| you wrote a trigger i rewrote it to work replace yours with mine | |
| | | BonoMania Recruit
| Subject: Re: Start Point Spawn Need Help Tue Jan 08, 2013 4:08 pm | |
| dude i still spawn the same point, as i did with my trigger xd.
but i keep your trigger anyway :p | |
| | | Serenity09 Moderator
| Subject: Re: Start Point Spawn Need Help Tue Jan 08, 2013 5:52 pm | |
| how big is your region? make it bigger. lots bigger | |
| | | BonoMania Recruit
| Subject: Re: Start Point Spawn Need Help Fri Jan 11, 2013 8:01 pm | |
| | |
| | | Serenity09 Moderator
| Subject: Re: Start Point Spawn Need Help Mon Jan 14, 2013 4:42 pm | |
| | |
| | | Sponsored content
| Subject: Re: Start Point Spawn Need Help | |
| |
| | | | Start Point Spawn Need Help | |
|
Similar topics | |
|
| Permissions in this forum: | You cannot reply to topics in this forum
| |
| |
| |