wc3edit.net

United Warcraft 3 map hacking!
It is currently March 29th, 2024, 1:55 am

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: [JASS]change unit color
PostPosted: March 23rd, 2019, 2:32 am 
Offline
Senior Member
User avatar

Joined: August 27th, 2010, 7:14 am
Posts: 124
when i put any of this command under elseif -setcolor, nothing happens when i type it in in but when i put it below -vul, it works as intended...

I cant seem to understand why that's the case, pls enlighten me.

Spoiler:
Code:
elseif SubString(s2s,0,10)=="-setvcolor"then
call SetUnitColor(GetTriggerUnit(),ConvertPlayerColor(6))


Top
 Profile  
 
PostPosted: March 28th, 2019, 3:01 pm 
Offline
Super Moderator
User avatar

Joined: February 24th, 2009, 1:31 pm
Posts: 3815
Location: JEW LAND
Your problem is the "GetTriggerUnit()"
This trigger isn't triggered by a unit. The event is a player chat string.
Notice that none of the previous commands GetTriggerUnit.


Top
 Profile  
 
PostPosted: April 4th, 2019, 2:04 pm 
Offline
Senior Member
User avatar

Joined: August 27th, 2010, 7:14 am
Posts: 124
I mean what's the difference between putting it below -vul and putting it below -setcolor, what's the key factor that makes it stop working? it's in the same function and everything

EDIT: nvm, it was the thing between -destid blabla endif & -int


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 14 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group

phpBB SEO


Privacy Policy Statement
Impressum (German)