FOnline Development > Questions and Answers
FOnline SDK - Question
BlindMaster:
how to add my location to map?
jan0s1k:
Question maybe to Mayck, maybe to FO2238 scripters:
How could I get something only for moder/admin access?
I tried for example:
--- Code: ---void render_iface(uint layer)
{
if(layer == 3)
{
CritterCl@ chosen = GetChosen();
if(chosen.GetAccess()==ACCESS_ADMIN){
uint16 hexX=0, hexY=0;
GetMonitorHex(__MouseX, __MouseY, hexX, hexY);
DrawText("Hex: "+hexX+" "+hexY,__ScreenWidth-100,20, 100, 20, 0, FONT_FALLOUT, FT_CENTERR);
}
DrawChosenTabs();
GUI_Render();
}
--- End code ---
But it seems, that it doesn't work (shouting something about not existing CritterCL.GetAccess function or something..)
Mayck:
GetAccess works only for Critter not CritterCl, because Critter and CritterCL are two different classes (they do not inherit anything between themselfs, though they might look similiar.)
I am using some unused parameter to get the access level client-side.
BlindMaster:
--- Quote from: Mayck on May 28, 2011, 11:05:37 am ---If i remember correctly, it was never there, so you can't simply add it back. Unless you script it...
--- End quote ---
OK.THen how to make an NPC fallow me and fight with me??
Surf:
--- Quote from: BlindMaster on May 29, 2011, 10:38:54 am ---OK.THen how to make an NPC fallow me and fight with me??
--- End quote ---
http://fodev.net/forum/index.php?topic=15466.0
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version