Mine - visibility
Hello.
I have function which place mine (like bomb etc) . Mine should be almost invisibility - it works. But how can i make if - which make mine invisible for all players - but visible when player has class == mage ? My code: Code:
public PlaceMine(id) |
Re: Mine - visibility
Change this
PHP Code:
PHP Code:
|
Re: Mine - visibility
Heh, i want, that for mage it will be visible - so your change cant work, can it?
|
Re: Mine - visibility
zirualas you are actually setting rendering on entity, doesn't matter who is looking on it. It won't work that way.
|
Re: Mine - visibility
I think so, but how can i do it?
|
Re: Mine - visibility
So you want only mages to actually SEE the mine ? Because what you're doing is if mages plant a mine, theirs will be visible... to all.
For only mages to see them, you'll need to hook FM_AddToFullPack, search for it to see examples :P |
Re: Mine - visibility
I want to mages will se them, others - not. So how can i do it? :)
|
Re: Mine - visibility
You want what mages be Visible but other players be Invisible?
|
Re: Mine - visibility
Mage can see 100% of the mine
Other players see 10% of the mine(default value) |
Re: Mine - visibility
Now i understand ;P
|
| All times are GMT -4. The time now is 10:22. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.