View Single Post
Old 10-13-2017   #4
Monster Iestyn
Friendly Neighbour-Hood
Moderator
 
Monster Iestyn's Avatar
Default

The projectile page isn't clear on how to use projectiles because there are many ways to use them. For instance it lists many actions that do exactly that, such as the A_SplitShot one you've chosen to use there. =P

That said I'm not sure if you're using A_SplitShot correctly there...

From A_SplitShot's wiki article (https://wiki.srb2.org/wiki/A_SplitShot):
Quote:
Var1 determines the horizontal offset from the target's position to aim for; the offset is added to one missile and subtracted from the other. Var2's lower 16 bits determine the Object type of the missile that is shot. Var2's upper 16 bits determine the height offset the missiles are shot from.
if you're confused about the lower/upper 16 bits thing for Var2, it just means you need to set Var2 to "MT_OBJECTTYPE+(height<<16)", MT_OBJECTTYPE being the type of Object you want the actor to fire and height being the height offset (relative to the z position of the actor's bottom).
__________________
My page stuffed full of MIDI goodness!
The Hitchhiker's Guide to the Robo-Hoodiverse
Timeline of Sonic Robo Blast History!

That's an uppercase i, not a lowercase L, for the record. Also, it's pronounced "Yes-tin".
Monster Iestyn is offline   Reply With Quote