SA-MP Forums Archive
[SOLVED] Creating objects behind the player - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [SOLVED] Creating objects behind the player (/showthread.php?tid=106945)



[SOLVED] Creating objects behind the player - Zothuron - 07.11.2009

Ok so i've been wondering how to do this.

Like i want people to be able to spawn objects like explosive barrels or whatever. (For DMs)
This works fine but i want the objects to spawn behind the player.
Like if they were facing south (180) then the object spawns behind them (or north of them).
If they are facing North-west, the object spawns to the South-east of them (behind them).

I've seen this done before, I'm just not sure how.

Can anyone help?


Nevermind, i figured it out .