Original War Support Bug Tracker
star_faded.png
Please log in to bookmark issues
feature_request_small.png
OPEN  Feature request #162  -  Event - On ButtonPress(button)
Posted Sep 03, 2015 - updated Sep 23, 2015
action_vote_minus_faded.png
3
Votes
action_vote_plus_faded.png
Issue details
  • Type of issue
    Feature request
  • Status
     
    New
  • Assigned to
    Not assigned to anyone
  • Progress
       
  • Type of bug
    Not triaged
  • Likelihood
    Not triaged
  • Effect
    Not triaged
  • Posted by
     Serpent
  • Owned by
    Not owned by anyone
  • Estimated time
    Not estimated
  • Time spent
    No time spent
  • Category
    Not determined
  • Priority
    Not determined
  • Targetted for
    icon_milestones.png Not determined
Issue description
"On ButtonPress(button)" will be very useful feature for sail coders.

Triggers when player press button (or buttons).

For example:
On ButtonPress(button) do
begin

if button = 'w' then
display_strings := "You press W!";
// multi press
if button = 'w' and button = 's' then
display_strings := "W, S";
end;

#2
Comment posted by
 Stucuk
Sep 17, 15:13
That would never work in a multiplayer map. Due to the fact it would literally cause Sync Loss (Since no one else pressed the button, whatever it does would never happen on their end).
#3
Comment posted by
 Serpent
icon_reply.pngSep 23, 18:08, in reply to comment #2
Add it only to SinglePlayer mode.