- Joined
- Apr 17, 2015
- Messages
- 72
- Reaction score
- 52
- First Language
- English
- Primarily Uses
Im curious as to why a script command I wrote doesn't work. Im trying to Alter Event 6 (006).
$dataMap.events[this._eventId]._eventId = 10
C = $dataMap.events[this._eventId]._eventId
D = $dataMap.events[10].x
Above is the delinquent code. when I try it i get "TypeError Cannot read property 'x' of undefined".
I have a message setup to show me output C and D as a message, When I change $dataMap.events[10].x to $dataMap.events[1].x (A completly different, totally unaltered event on the map.)
It tells me that C is = 10 and that D is = to Event 1's X coordinate.
Also changing C = $dataMap.events[this._eventId]._eventId to C = $dataMap.events[6]._eventId Still Shows that C is = to 10.
$dataMap.events[this._eventId]._eventId = 10
C = $dataMap.events[this._eventId]._eventId
D = $dataMap.events[10].x
Above is the delinquent code. when I try it i get "TypeError Cannot read property 'x' of undefined".
I have a message setup to show me output C and D as a message, When I change $dataMap.events[10].x to $dataMap.events[1].x (A completly different, totally unaltered event on the map.)
It tells me that C is = 10 and that D is = to Event 1's X coordinate.
Also changing C = $dataMap.events[this._eventId]._eventId to C = $dataMap.events[6]._eventId Still Shows that C is = to 10.
Last edited by a moderator:
