scripting:snippets
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
scripting:snippets [2022/08/11 13:13] – jerryhopper | scripting:snippets [2022/08/11 13:58] (current) – jerryhopper | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Snippets ====== | ====== Snippets ====== | ||
- | |||
- | |||
- | |||
- | Get a Entity | ||
- | |||
- | One of the most used commands is probably ' | ||
- | |||
- | Notice the variable name ' | ||
- | |||
- | **Example1**: | ||
- | |||
- | GenericEntity soldier = GenericEntity.Cast(GetWorld().FindEntityByName(" | ||
- | | ||
- | |||
- | **Example1**: | ||
- | |||
- | GenericEntity btr = GenericEntity.Cast(GetWorld().FindEntityByName(" | ||
- | |||
- | |||
- | |||
- | |||
- | |||
Line 50: | Line 28: | ||
soldier_c.SetFireWeaponWanted(1) | soldier_c.SetFireWeaponWanted(1) | ||
</ | </ | ||
+ |
scripting/snippets.1660220015.txt.gz · Last modified: 2022/08/11 13:13 by jerryhopper