Hello
This is a new tutorial and also a small request, . The tutorial is about the command beginLocationselection, what it does is to open a menu to select a position, is the airstrike location one. There is a precaching command for location selectors:
This is the command of the tutorial:
An example:
The game uses in target size: level.mapSize/5.625. The location notifies: "confirm_location" and "cancel_location"
This is a command to end the selection:
Another example, ,(we select position and a magicbullet will fall in the position we selected):
A function I made that you can use to know if a player is using a location selector or not.
Artillery selectors:
What I would like to request is if can someone try this, I want to know how is the map_nuke_selector, is because I found once a shader of a nuke location selector cursor and I want to know if the selector menu is different or not:
Thanks for reading,
This is a new tutorial and also a small request, . The tutorial is about the command beginLocationselection, what it does is to open a menu to select a position, is the airstrike location one. There is a precaching command for location selectors:
Code:
precacheLocationSelector("selector name");
This is the command of the tutorial:
Code:
self beginLocationSelection("selector name",choose direction or not,target size);
An example:
Code:
self beginLocationselection("map_artillery_selector",true,(level.mapSize/5.625));
The game uses in target size: level.mapSize/5.625. The location notifies: "confirm_location" and "cancel_location"
This is a command to end the selection:
Code:
self endLocationSelection();
Another example, ,(we select position and a magicbullet will fall in the position we selected):
Code:
self beginLocationselection("map_artillery_selector",true,(level.mapSize/5.625));
self.selectingLocation = true;
self waittill("confirm_location",location,directionYaw);
self endLocationSelection();
self.selectingLocation = undefined;
trace = bullettrace(location+(0,0,100),location-(0,0,100000),true,self);
MagicBullet("ac130_105mm_mp",location,trace["position"],self);
A function I made that you can use to know if a player is using a location selector or not.
Code:
isSelectingLoc()
{
if(self.selectingLocation)
return true;
return false;
}
Artillery selectors:
Code:
map_artillery_selector
map_nuke_selector
What I would like to request is if can someone try this, I want to know how is the map_nuke_selector, is because I found once a shader of a nuke location selector cursor and I want to know if the selector menu is different or not:
Code:
self beginLocationselection("map_nuke_selector",true,(level.mapSize/5.625));
Thanks for reading,