- Joined
- Apr 3, 2006
- Messages
- 112
I am using a simple GUI projectile system for my map, and the problem I am running into is an error I keep getting for using a custom script that detects terrain pathability. I am not very good at triggers so I checked out some maps for reference and decided to use a boolean that will check if a point is pathable.
The custom script goes like this: "set udg_Walkable = IsTerrainWalkable (GetLocationX(udg_TempLoc02), GetLocationY(udg_TempLoc02))"
Walkable is the boolean variable, and TempLoc01 and TempLoc02 are point variables (TempLoc02 is for where the projectile will land next). However, I keep getting an error that says expected a name. What am I doing wrong, am I missing something?
The custom script goes like this: "set udg_Walkable = IsTerrainWalkable (GetLocationX(udg_TempLoc02), GetLocationY(udg_TempLoc02))"
Walkable is the boolean variable, and TempLoc01 and TempLoc02 are point variables (TempLoc02 is for where the projectile will land next). However, I keep getting an error that says expected a name. What am I doing wrong, am I missing something?