Quantcast
Channel: OpenRA
Viewing all articles
Browse latest Browse all 195

Mapping and Modding • How to differ Building from Vehicle? In general?

$
0
0
Question about Lua code.
How to differ D2k Building from vehicle? In general?

I can write detail

CODE:

actor.Type ~= "wind_trap"actor.Type ~= "palace"actor.Type ~= "wall"
and so on.

I would like to found more general solution.

If object is Building then ...
If object is Vehicle then ...


---

P.S. Or maybe an unique property?

Statistics: Posted by Adrian — Tue Feb 04, 2025 10:50 pm — Replies 2 — Views 65



Viewing all articles
Browse latest Browse all 195

Trending Articles