New to the forum? Say hello in this topic! Make sure to read the rules.
RULE NR 3 UPDATED: Don't hurt, harass or provoke other forum members or people.

Few questions

Share questions and tutorials related to the map editor. Share you maps in the Superfighters Deluxe Custom Maps section.
Forum rules
By using the forum you agree to the following rules.
Post Reply
Posts: 1
Joined: Tue Aug 08, 2017 3:14 am

Few questions

Post by RamboCreativity » Tue Aug 08, 2017 3:20 am

How do I make an area trigger that when yo enter you teleport somewhere else.
Also can I make a spawnweapontrigger spawn weapons that are dynamic, it only spawns static weapons and I'm trying to have a knife fall from a vent.
Any help would be great.
0 x

Hoang Marcel
Posts: 62
Joined: Sun Mar 20, 2016 3:40 am
Title: Custom map lover
Started SFD: PreAlpha 1.6.4
Location: Vietnam

Post by Hoang Marcel » Tue Aug 08, 2017 4:20 am

Paste this script into your map :

public void Teleport(TriggerArgs arg){
IPlayer ply = (IPlayer)arg.Sender;
IObject obj = Game.GetSingleObjectByCustomID("obj");
Vector2 pos = obj.GetWorldPosition();

And then create an AreaTriggger with script method Teleport and create a non solid static title like an InvisibleBlockNoCollision with ObjectID obj

Instead of using the WeaponSpawnTrigger, use the SpawnObjectTrigger.
1 x

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest