Map Database  •  FAQ  •  RSS  •  Register  •  Login

Missing On-Events

Post a reply

Smilies
:arrow: (H) :'( :O :@ (!) :( :idea: :lol: :mad: :mrgreen: :| (?) :P :$ :rolleyes: (6) :D :) :o :? :wink:
View more smilies
BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are ON
Topic review
   

Expand view Topic review: Missing On-Events

Post by RandomLyrics » 06 Aug 2016, 20:00

Re: Missing On-Events

Oh Great!
Thank You Lewin :)

Post by Lewin » 05 Aug 2016, 00:29

Re: Missing On-Events

I'm not sure why they're missing from the documentation. They exist the code, you just got the names slightly wrong. Should be:
ONPLANROADPLACED
ONPLANFIELDPLACED
ONPLANWINEFIELDPLACED
ONPLANROADREMOVED
ONPLANFIELDREMOVED
ONPLANWINEFIELDREMOVED
(case doesn't matter)

You can see the full list in the code here:
https://github.com/Kromster80/kam_remak ... s.pas#L130

I might update the wiki... EDIT: Done! :)

Post by RandomLyrics » 03 Aug 2016, 19:02

Missing On-Events

Hi, im working on new map, and i cant figure out something..
It seems that some script methods dont working, like:
  Code:
// PLANS
procedure OnPlanRoad(aIndex, X, Y: integer);
begin
   test(aIndex);
   Actions.PlanRemove(aIndex, X, Y);
end;
procedure OnPlanField(aIndex, X, Y: integer);
begin
   Actions.PlanRemove(aIndex, X, Y);
end;
procedure OnPlanWinefield(aIndex, X, Y: integer);
begin
   Actions.PlanRemove(aIndex, X, Y);
end;

i use them to prevent plans in special maps.

And still i can put some plans around.

They used to be there, they have been removed(?):
https://github.com/Kromster80/kam_remak ... ptsDynamic
im using r6720.

Top

cron