Map Database  •  FAQ  •  RSS  •  Login

Missing On-Events

<<

RandomLyrics

User avatar

Sword Fighter

Posts: 298

Joined: 21 Jul 2013, 02:15

KaM Skill Level: Fair

Post 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.
<<

Lewin

User avatar

KaM Remake Developer

Posts: 3822

Joined: 16 Sep 2007, 22:00

KaM Skill Level: Skilled

ICQ: 269127056

Website: http://lewin.hodgman.id.au

Yahoo Messenger: lewinlewinhodgman

Location: Australia

Post 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! :)
<<

RandomLyrics

User avatar

Sword Fighter

Posts: 298

Joined: 21 Jul 2013, 02:15

KaM Skill Level: Fair

Post 06 Aug 2016, 20:00

Re: Missing On-Events

Oh Great!
Thank You Lewin :)

Return to “Dynamic Scripting”

Who is online

Users browsing this forum: No registered users and 6 guests