Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
wittrockscode committed Jan 15, 2025
1 parent 4d4d3bc commit 3c41312
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ You can set these by using this structure in your function call:
```
SpawnRocketAtEntity(`spawn_entity_name`, {target=`target_entity_name`,homing=true,damage=90.0,speed=1100,collision_avoidance=false})
```
*Note: To use strings in parameters, you have to use backticks (`).*
*Note: To use strings in parameters, you have to use backticks (`). Do NOT use double quotation marks (") as this will corrup your .vmf file.*

Omitting the `target` parameter when spawning a homing rocket sets the `!activator` as the target.
The `target` parameter on non-homing (and also homing) rockets defines which entity or player is damaged by it, if the `damage_everyone` parameter is not set to `true`.
Expand Down Expand Up @@ -70,6 +70,7 @@ Add this output:
| My Output | Target Entity | Target Input | Parameter | Delay |
|--|--|--|--|--|
| OnStartTouch | script | RunScriptCode | ReplaceRocket() | 0.00 |

You can use this in combination with a `trigger_push` to reflect rockets back to the player that damage him.

---
Expand Down

0 comments on commit 3c41312

Please sign in to comment.